all: fix a few function names on comments Change-Id: Ibdf787b7a62e8201393f2a4487cd8c67d8b0c91d Reviewed-on: https://go-review.googlesource.com/c/text/+/441717 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Joedian Reid <joedian@golang.org>
diff --git a/internal/language/lookup.go b/internal/language/lookup.go index 9309dc2..231b4fb 100644 --- a/internal/language/lookup.go +++ b/internal/language/lookup.go
@@ -50,7 +50,7 @@ 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 7193369..930e87f 100644 --- a/runes/runes.go +++ b/runes/runes.go
@@ -33,7 +33,7 @@ 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 056fe7f..5794ae4 100644 --- a/unicode/cldr/collate.go +++ b/unicode/cldr/collate.go
@@ -229,7 +229,7 @@ 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 {