Skip to content

Commit

Permalink
docs: comment should end in a period
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Feb 23, 2024
1 parent 2257f1e commit 6a2eda6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (w *Dictionary) Generator() Generator {
return Generator{Probabilities: m}
}

// count the amount of occurencies of a suffix
// count the amount of occurencies of a suffix.
func (w *Dictionary) count(substr string) {
prefix := substr[:len(substr)-1]
suffix := substr[len(substr)-1:]
Expand All @@ -91,7 +91,7 @@ func (w *Dictionary) count(substr string) {
w.counter[prefix][suffix] += 1
}

// splitToLength splits a string to substrings of length
// splitToLength splits a string to substrings of length.
func splitToLength(s string, length int) []string {
substrs := []string{}

Expand Down
2 changes: 1 addition & 1 deletion generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
// MaxSequencesDefault contains the default for Generator.MaxSequences
// MaxSequencesDefault contains the default for Generator.MaxSequences.
MaxSequencesDefault = 2

prefix = "^"
Expand Down

0 comments on commit 6a2eda6

Please sign in to comment.