Skip to content

Commit 0dc94a2

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: Ic2005390185150566bbd791ccc5661d216a648ee Reviewed-on: https://go-review.googlesource.com/c/text/+/713440 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent f4bb632 commit 0dc94a2

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

cases/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func upper(c *context) bool {
249249
return c.copy()
250250
}
251251

252-
// isUpper writes the isUppercase version of the current rune to dst.
252+
// isUpper reports whether the current rune is in upper case.
253253
func isUpper(c *context) bool {
254254
ct := c.caseType()
255255
if c.info&hasMappingMask == 0 || ct == cUpper {

cases/map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ func nlTitle(c *context) bool {
774774
// From CLDR:
775775
// # Special titlecasing for Dutch initial "ij".
776776
// ::Any-Title();
777-
// # Fix up Ij at the beginning of a "word" (per Any-Title, notUAX #29)
777+
// # Fix up Ij at the beginning of a "word" (per Any-Title, not UAX #29)
778778
// [:^WB=ALetter:] [:WB=Extend:]* [[:WB=MidLetter:][:WB=MidNumLet:]]? { Ij } → IJ ;
779779
if c.src[c.pSrc] != 'I' && c.src[c.pSrc] != 'i' {
780780
return title(c)
@@ -794,7 +794,7 @@ func nlTitleSpan(c *context) bool {
794794
// From CLDR:
795795
// # Special titlecasing for Dutch initial "ij".
796796
// ::Any-Title();
797-
// # Fix up Ij at the beginning of a "word" (per Any-Title, notUAX #29)
797+
// # Fix up Ij at the beginning of a "word" (per Any-Title, not UAX #29)
798798
// [:^WB=ALetter:] [:WB=Extend:]* [[:WB=MidLetter:][:WB=MidNumLet:]]? { Ij } → IJ ;
799799
if c.src[c.pSrc] != 'I' {
800800
return isTitle(c)

collate/collate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ func (c *Collator) Key(buf *Buffer, str []byte) []byte {
200200

201201
// KeyFromString returns the collation key for str.
202202
// Passing the buffer buf may avoid memory allocations.
203-
// The returned slice will point to an allocation in Buffer and will retain
204-
// valid until the next call to buf.ResetKeys().
203+
// The returned slice will point to an allocation in Buffer and will remain
204+
// valid until the next call to buf.Reset().
205205
func (c *Collator) KeyFromString(buf *Buffer, str string) []byte {
206206
// See https://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
207207
buf.init()

message/fmt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ func TestCountMallocs(t *testing.T) {
14321432
t.Skip("skipping malloc count in short mode")
14331433
case runtime.GOMAXPROCS(0) > 1:
14341434
t.Skip("skipping; GOMAXPROCS>1")
1435-
// TODO: detect race detecter enabled.
1435+
// TODO: detect race detector enabled.
14361436
// case race.Enabled:
14371437
// t.Skip("skipping malloc count under race detector")
14381438
}

0 commit comments

Comments
 (0)