Skip to content

Commit

Permalink
all: remove repetitive words
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cuishuang authored and gopherbot committed Jul 17, 2023
1 parent e503480 commit ab07ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion language/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions secure/precis/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab07ad1

Please sign in to comment.