Skip to content

Commit 71a9c9a

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: Idc053f5d3a787746c0205dbda5cc34b7d2be4655 Reviewed-on: https://go-review.googlesource.com/c/text/+/464255 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent ec5565b commit 71a9c9a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

internal/cldrtree/option.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (o *options) fill(opt []Option) {
2929
}
3030
}
3131

32-
// aliasOpt sets an alias from the given node, if the node defines one.
32+
// setAlias sets an alias from the given node, if the node defines one.
3333
func (o *options) setAlias(n Element) {
3434
if n != nil && !reflect.ValueOf(n).IsNil() {
3535
o.alias = n.GetCommon()

internal/language/compact/language.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (t Tag) Parent() Tag {
118118
return Tag{language: lang, locale: lang}
119119
}
120120

121-
// returns token t and the rest of the string.
121+
// nextToken returns token t and the rest of the string.
122122
func nextToken(s string) (t, tail string) {
123123
p := strings.Index(s[1:], "-")
124124
if p == -1 {

internal/language/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ func find(list []string, s string) int {
10801080
return -1
10811081
}
10821082

1083-
// writeVariants generates per-variant information and creates a map from variant
1083+
// writeVariant generates per-variant information and creates a map from variant
10841084
// name to index value. We assign index values such that sorting multiple
10851085
// variants by index value will result in the correct order.
10861086
// There are two types of variants: specialized and general. Specialized variants

internal/language/language.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func (t Tag) SetTypeForKey(key, value string) (Tag, error) {
409409
return t, nil
410410
}
411411

412-
// findKeyAndType returns the start and end position for the type corresponding
412+
// findTypeForKey returns the start and end position for the type corresponding
413413
// to key or the point at which to insert the key-value pair if the type
414414
// wasn't found. The hasExt return value reports whether an -u extension was present.
415415
// Note: the extensions are typically very small and are likely to contain

language/display/maketables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ func (h *header) writeSingle(w *gen.CodeWriter, name string) {
528528
}
529529
}
530530

531-
// WriteTable writes an entry for a single Namer.
531+
// writeTable writes an entry for a single Namer.
532532
func (g *group) writeTable(w *gen.CodeWriter, name string) {
533533
start := w.Size
534534
writeKeys(w, name, g.toTags)

language/language.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (t Tag) Parent() Tag {
344344
return Tag(compact.Tag(t).Parent())
345345
}
346346

347-
// returns token t and the rest of the string.
347+
// nextToken returns token t and the rest of the string.
348348
func nextToken(s string) (t, tail string) {
349349
p := strings.Index(s[1:], "-")
350350
if p == -1 {

0 commit comments

Comments
 (0)