diff --git a/extension/footnote.go b/extension/footnote.go index 0f7387a..0b1ac9f 100644 --- a/extension/footnote.go +++ b/extension/footnote.go @@ -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 diff --git a/util/util.go b/util/util.go index be82394..3ec73f5 100644 --- a/util/util.go +++ b/util/util.go @@ -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) } @@ -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) }