mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Merge pull request #172 from moorereason/typos
Fix typos in godocs comments
This commit is contained in:
commit
748fc079dc
2 changed files with 4 additions and 4 deletions
|
|
@ -252,9 +252,9 @@ func (a *footnoteASTTransformer) Transform(node *gast.Document, reader text.Read
|
||||||
// FootnoteConfig holds configuration values for the footnote extension.
|
// FootnoteConfig holds configuration values for the footnote extension.
|
||||||
//
|
//
|
||||||
// Link* and Backlink* configurations have some variables:
|
// 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.
|
// 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).
|
// reference (footnotes can have multiple references).
|
||||||
type FootnoteConfig struct {
|
type FootnoteConfig struct {
|
||||||
html.Config
|
html.Config
|
||||||
|
|
|
||||||
|
|
@ -816,7 +816,7 @@ func IsPunct(c byte) bool {
|
||||||
return punctTable[c] == 1
|
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 {
|
func IsPunctRune(r rune) bool {
|
||||||
return int32(r) <= 256 && IsPunct(byte(r)) || unicode.IsPunct(r)
|
return int32(r) <= 256 && IsPunct(byte(r)) || unicode.IsPunct(r)
|
||||||
}
|
}
|
||||||
|
|
@ -826,7 +826,7 @@ func IsSpace(c byte) bool {
|
||||||
return spaceTable[c] == 1
|
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 {
|
func IsSpaceRune(r rune) bool {
|
||||||
return int32(r) <= 256 && IsSpace(byte(r)) || unicode.IsSpace(r)
|
return int32(r) <= 256 && IsSpace(byte(r)) || unicode.IsSpace(r)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue