Skip to content

Commit

Permalink
Merge pull request #172 from moorereason/typos
Browse files Browse the repository at this point in the history
Fix typos in godocs comments
  • Loading branch information
yuin authored Dec 26, 2020
2 parents 033db7d + 5e417f8 commit 748fc07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extension/footnote.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ func (a *footnoteASTTransformer) Transform(node *gast.Document, reader text.Read
// FootnoteConfig holds configuration values for the footnote extension.
//
// Link* and Backlink* configurations have some variables:
// Occurances of “^^” in the string will be replaced by the
// Occurrances of “^^” in the string will be replaced by the
// corresponding footnote number in the HTML output.
// Occurances of “%%” will be replaced by a number for the
// Occurrances of “%%” will be replaced by a number for the
// reference (footnotes can have multiple references).
type FootnoteConfig struct {
html.Config
Expand Down
4 changes: 2 additions & 2 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func IsPunct(c byte) bool {
return punctTable[c] == 1
}

// IsPunct returns true if the given rune is a punctuation, otherwise false.
// IsPunctRune returns true if the given rune is a punctuation, otherwise false.
func IsPunctRune(r rune) bool {
return int32(r) <= 256 && IsPunct(byte(r)) || unicode.IsPunct(r)
}
Expand All @@ -826,7 +826,7 @@ func IsSpace(c byte) bool {
return spaceTable[c] == 1
}

// IsSpace returns true if the given rune is a space, otherwise false.
// IsSpaceRune returns true if the given rune is a space, otherwise false.
func IsSpaceRune(r rune) bool {
return int32(r) <= 256 && IsSpace(byte(r)) || unicode.IsSpace(r)
}
Expand Down

0 comments on commit 748fc07

Please sign in to comment.