summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-07-15 00:30:59 +0800
committerGopher Robot <gobot@golang.org>2023-07-17 14:36:42 +0000
commitab07ad1b65bc4cdc738e747f7569a3795d2e60ec (patch)
treeb32ec595952679692d5a1bed919b5755a6edf34b
parente50348080f29449bcd6808c11400b3d45f08b09d (diff)
downloadgolang-x-text-ab07ad1b65bc4cdc738e747f7569a3795d2e60ec.tar.gz
all: remove repetitive words
Change-Id: I496265fcad6dee919eff6fc1fbcf9121ae61730f Reviewed-on: https://go-review.googlesource.com/c/text/+/509855 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
-rw-r--r--language/match.go2
-rw-r--r--secure/precis/gen.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/language/match.go b/language/match.go
index ee45f49..1153baf 100644
--- a/language/match.go
+++ b/language/match.go
@@ -434,7 +434,7 @@ func newMatcher(supported []Tag, options []MatchOption) *matcher {
// (their canonicalization simply substitutes a different language code, but
// nothing else), the match confidence is Exact, otherwise it is High.
for i, lm := range language.AliasMap {
- // If deprecated codes match and there is no fiddling with the script or
+ // If deprecated codes match and there is no fiddling with the script
// or region, we consider it an exact match.
conf := Exact
if language.AliasTypes[i] != language.Macro {
diff --git a/secure/precis/gen.go b/secure/precis/gen.go
index 99ead42..aa20568 100644
--- a/secure/precis/gen.go
+++ b/secure/precis/gen.go
@@ -221,12 +221,12 @@ func isLetterDigits(r rune) bool {
func isIdDisAndFreePVal(r rune) bool {
return unicode.In(r,
// OtherLetterDigits: https://tools.ietf.org/html/rfc7564#section-9.18
- // r in in {Lt, Nl, No, Me}
+ // r in {Lt, Nl, No, Me}
unicode.Lt, unicode.Nl, unicode.No, // Other letters / numbers
unicode.Me, // Modifiers
// Spaces: https://tools.ietf.org/html/rfc7564#section-9.14
- // r in in {Zs}
+ // r in {Zs}
unicode.Zs,
// Symbols: https://tools.ietf.org/html/rfc7564#section-9.15