Skip to content

Commit 38a95c2

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: I6ba7a9de50acfa522d96609abead28d207ab4f81 Reviewed-on: https://go-review.googlesource.com/c/text/+/611795 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Tim King <[email protected]> Auto-Submit: Tim King <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 20097e4 commit 38a95c2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

collate/build/colelem.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const (
139139
maxPrimary = illegalOffset + 1
140140
)
141141

142-
// implicitPrimary returns the primary weight for the a rune
142+
// implicitPrimary returns the primary weight for the given rune
143143
// for which there is no entry for the rune in the collation table.
144144
// We take a different approach from the one specified in
145145
// https://unicode.org/reports/tr10/#Implicit_Weights,

internal/catmsg/codec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (d *Decoder) setError(err error) {
257257
// Language returns the language in which the message is being rendered.
258258
//
259259
// The destination language may be a child language of the language used for
260-
// encoding. For instance, a decoding language of "pt-PT"" is consistent with an
260+
// encoding. For instance, a decoding language of "pt-PT" is consistent with an
261261
// encoding language of "pt".
262262
func (d *Decoder) Language() language.Tag { return d.tag }
263263

internal/colltab/collelem.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ const (
354354
maxPrimary = illegalOffset + 1
355355
)
356356

357-
// implicitPrimary returns the primary weight for the a rune
357+
// implicitPrimary returns the primary weight for the given rune
358358
// for which there is no entry for the rune in the collation table.
359359
// We take a different approach from the one specified in
360360
// https://unicode.org/reports/tr10/#Implicit_Weights,

message/pipeline/pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type Config struct {
5858
// 1. From the Language field in the file.
5959
// 2. If not present, from a valid language tag in the filename, separated
6060
// by dots (e.g. "en-US.json" or "incoming.pt_PT.xmb").
61-
// 3. If not present, from a the closest subdirectory in which the file
61+
// 3. If not present, from the closest subdirectory in which the file
6262
// is contained that parses as a valid language tag.
6363
TranslationsPattern string
6464

unicode/norm/maketables.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func loadUnicodeData() {
235235
}
236236
}
237237

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

0 commit comments

Comments
 (0)