Skip to content

Commit

Permalink
all: fix some comments
Browse files Browse the repository at this point in the history
Change-Id: I6ba7a9de50acfa522d96609abead28d207ab4f81
Reviewed-on: https://go-review.googlesource.com/c/text/+/611795
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Tim King <taking@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
cuishuang authored and gopherbot committed Sep 11, 2024
1 parent 20097e4 commit 38a95c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion collate/build/colelem.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const (
maxPrimary = illegalOffset + 1
)

// implicitPrimary returns the primary weight for the a rune
// implicitPrimary returns the primary weight for the given rune
// for which there is no entry for the rune in the collation table.
// We take a different approach from the one specified in
// https://unicode.org/reports/tr10/#Implicit_Weights,
Expand Down
2 changes: 1 addition & 1 deletion internal/catmsg/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (d *Decoder) setError(err error) {
// Language returns the language in which the message is being rendered.
//
// The destination language may be a child language of the language used for
// encoding. For instance, a decoding language of "pt-PT"" is consistent with an
// encoding. For instance, a decoding language of "pt-PT" is consistent with an
// encoding language of "pt".
func (d *Decoder) Language() language.Tag { return d.tag }

Expand Down
2 changes: 1 addition & 1 deletion internal/colltab/collelem.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ const (
maxPrimary = illegalOffset + 1
)

// implicitPrimary returns the primary weight for the a rune
// implicitPrimary returns the primary weight for the given rune
// for which there is no entry for the rune in the collation table.
// We take a different approach from the one specified in
// https://unicode.org/reports/tr10/#Implicit_Weights,
Expand Down
2 changes: 1 addition & 1 deletion message/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Config struct {
// 1. From the Language field in the file.
// 2. If not present, from a valid language tag in the filename, separated
// by dots (e.g. "en-US.json" or "incoming.pt_PT.xmb").
// 3. If not present, from a the closest subdirectory in which the file
// 3. If not present, from the closest subdirectory in which the file
// is contained that parses as a valid language tag.
TranslationsPattern string

Expand Down
2 changes: 1 addition & 1 deletion unicode/norm/maketables.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func loadUnicodeData() {
}
}

// compactCCC converts the sparse set of CCC values to a continguous one,
// compactCCC converts the sparse set of CCC values to a contiguous one,
// reducing the number of bits needed from 8 to 6.
func compactCCC() {
m := make(map[uint8]uint8)
Expand Down

0 comments on commit 38a95c2

Please sign in to comment.