Skip to content

Commit

Permalink
all: fix some comments
Browse files Browse the repository at this point in the history
Change-Id: I1ae88db264cb5fb513773241ec2a8e7694c8c6e5
Reviewed-on: https://go-review.googlesource.com/c/text/+/480175
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
cuishuang authored and gopherbot committed Apr 4, 2023
1 parent 9db913a commit 48e4a4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion collate/maketables.go
Expand Up @@ -286,7 +286,7 @@ var tagRe = regexp.MustCompile(`<([a-z_]*) */>`)

var mainLocales = []string{}

// charsets holds a list of exemplar characters per category.
// charSets holds a list of exemplar characters per category.
type charSets map[string][]string

func (p charSets) fprint(w io.Writer) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cldrtree/option.go
Expand Up @@ -36,7 +36,7 @@ func (o *options) setAlias(n Element) {
}
}

// Enum defines a enumeration type. The resulting option may be passed for the
// Enum defines an enumeration type. The resulting option may be passed for the
// construction of multiple Indexes, which they will share the same enum values.
// Calling Gen on a Builder will generate the Enum for the given name. The
// optional values fix the values for the given identifier to the argument
Expand Down
2 changes: 1 addition & 1 deletion language/httpexample_test.go
Expand Up @@ -19,7 +19,7 @@ var matcher = language.NewMatcher([]language.Tag{
language.German,
})

// handler is a http.HandlerFunc.
// handler is an http.HandlerFunc.
func handler(w http.ResponseWriter, r *http.Request) {
t, q, err := language.ParseAcceptLanguage(r.Header.Get("Accept-Language"))
// We ignore the error: the default language will be selected for t == nil.
Expand Down

0 comments on commit 48e4a4a

Please sign in to comment.