Skip to content

Commit

Permalink
all: fix a few function names on comments
Browse files Browse the repository at this point in the history
Change-Id: Ibdf787b7a62e8201393f2a4487cd8c67d8b0c91d
Reviewed-on: https://go-review.googlesource.com/c/text/+/441717
Run-TryBot: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Joedian Reid <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Oct 12, 2022
1 parent 434eadc commit 369c86b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/language/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion runes/runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
Expand Down
2 changes: 1 addition & 1 deletion unicode/cldr/collate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 369c86b

Please sign in to comment.