File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 .
253253func isUpper (c * context ) bool {
254254 ct := c .caseType ()
255255 if c .info & hasMappingMask == 0 || ct == cUpper {
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ().
205205func (c * Collator ) KeyFromString (buf * Buffer , str string ) []byte {
206206 // See https://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
207207 buf .init ()
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments