Skip to content

Commit 369c86b

Browse files
cuishuanggopherbot
authored andcommitted
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 <[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]>
1 parent 434eadc commit 369c86b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/language/lookup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (id Language) Canonicalize() (Language, AliasType) {
5050
return normLang(id)
5151
}
5252

53-
// mapLang returns the mapped langID of id according to mapping m.
53+
// normLang returns the mapped langID of id according to mapping m.
5454
func normLang(id Language) (Language, AliasType) {
5555
k := sort.Search(len(AliasMap), func(i int) bool {
5656
return AliasMap[i].From >= uint16(id)

runes/runes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func In(rt *unicode.RangeTable) Set {
3333
return setFunc(func(r rune) bool { return unicode.Is(rt, r) })
3434
}
3535

36-
// In creates a Set with a Contains method that returns true for all runes not
36+
// NotIn creates a Set with a Contains method that returns true for all runes not
3737
// in the given RangeTable.
3838
func NotIn(rt *unicode.RangeTable) Set {
3939
return setFunc(func(r rune) bool { return !unicode.Is(rt, r) })

unicode/cldr/collate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func skipSpace(s string) string {
229229
return strings.TrimLeftFunc(s, unicode.IsSpace)
230230
}
231231

232-
// consumes returns whether the next byte is ch. If so, it gobbles it by
232+
// consume returns whether the next byte is ch. If so, it gobbles it by
233233
// updating s.
234234
func consume(s *string, ch byte) (ok bool) {
235235
if *s == "" || (*s)[0] != ch {

0 commit comments

Comments
 (0)