diff --git a/internal/language/lookup.go b/internal/language/lookup.go index 9309dc276..231b4fbde 100644 --- a/internal/language/lookup.go +++ b/internal/language/lookup.go @@ -50,7 +50,7 @@ func (id Language) Canonicalize() (Language, AliasType) { return normLang(id) } -// mapLang returns the mapped langID of id according to mapping m. +// normLang returns the mapped langID of id according to mapping m. func normLang(id Language) (Language, AliasType) { k := sort.Search(len(AliasMap), func(i int) bool { return AliasMap[i].From >= uint16(id) diff --git a/runes/runes.go b/runes/runes.go index 71933696f..930e87fed 100644 --- a/runes/runes.go +++ b/runes/runes.go @@ -33,7 +33,7 @@ func In(rt *unicode.RangeTable) Set { return setFunc(func(r rune) bool { return unicode.Is(rt, r) }) } -// In creates a Set with a Contains method that returns true for all runes not +// NotIn creates a Set with a Contains method that returns true for all runes not // in the given RangeTable. func NotIn(rt *unicode.RangeTable) Set { return setFunc(func(r rune) bool { return !unicode.Is(rt, r) }) diff --git a/unicode/cldr/collate.go b/unicode/cldr/collate.go index 056fe7f7f..5794ae482 100644 --- a/unicode/cldr/collate.go +++ b/unicode/cldr/collate.go @@ -229,7 +229,7 @@ func skipSpace(s string) string { return strings.TrimLeftFunc(s, unicode.IsSpace) } -// consumes returns whether the next byte is ch. If so, it gobbles it by +// consume returns whether the next byte is ch. If so, it gobbles it by // updating s. func consume(s *string, ch byte) (ok bool) { if *s == "" || (*s)[0] != ch {