diff options
author | cui fliter <imcusg@gmail.com> | 2023-03-29 22:45:25 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-04-04 14:19:46 +0000 |
commit | 48e4a4a957429d31328a685863b594ca9a06b552 (patch) | |
tree | c4596979db4a90e3edcf48edb005dd3ae9a9ab19 | |
parent | 9db913aaf20ced01b7a130d9fb222d74a1339fa6 (diff) | |
download | golang-x-text-48e4a4a957429d31328a685863b594ca9a06b552.tar.gz |
all: fix some comments
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>
-rw-r--r-- | collate/maketables.go | 2 | ||||
-rw-r--r-- | internal/cldrtree/option.go | 2 | ||||
-rw-r--r-- | language/httpexample_test.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/collate/maketables.go b/collate/maketables.go index 4175143..d1fb439 100644 --- a/collate/maketables.go +++ b/collate/maketables.go @@ -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) { diff --git a/internal/cldrtree/option.go b/internal/cldrtree/option.go index 33b6103..ca0d447 100644 --- a/internal/cldrtree/option.go +++ b/internal/cldrtree/option.go @@ -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 diff --git a/language/httpexample_test.go b/language/httpexample_test.go index 03c0ab9..b12a585 100644 --- a/language/httpexample_test.go +++ b/language/httpexample_test.go @@ -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. |