From 48e4a4a957429d31328a685863b594ca9a06b552 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 29 Mar 2023 22:45:25 +0800 Subject: [PATCH] all: fix some comments Change-Id: I1ae88db264cb5fb513773241ec2a8e7694c8c6e5 Reviewed-on: https://go-review.googlesource.com/c/text/+/480175 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Knyszek Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot --- collate/maketables.go | 2 +- internal/cldrtree/option.go | 2 +- language/httpexample_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/collate/maketables.go b/collate/maketables.go index 4175143e3..d1fb439a8 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 33b6103b0..ca0d4476c 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 03c0ab9cc..b12a585e6 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.