]> Cypherpunks repositories - gostls13.git/commitdiff
bytes,string: move the BUG to the comment of the function it's about
authorRob Pike <r@golang.org>
Sat, 16 Mar 2013 00:08:07 +0000 (17:08 -0700)
committerRob Pike <r@golang.org>
Sat, 16 Mar 2013 00:08:07 +0000 (17:08 -0700)
Avoids printing it every time we ask a question about the package from
the command line.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7789048

src/pkg/bytes/bytes.go
src/pkg/strings/strings.go

index 3bab65ef901207ad8402d05765c49c76eaa7efb0..00ce37da08ed86bdcbc69db9ce95b95900ab71ba 100644 (file)
@@ -461,10 +461,10 @@ func isSeparator(r rune) bool {
        return unicode.IsSpace(r)
 }
 
-// BUG(r): The rule Title uses for word boundaries does not handle Unicode punctuation properly.
-
 // Title returns a copy of s with all Unicode letters that begin words
 // mapped to their title case.
+//
+// BUG(r): The rule Title uses for word boundaries does not handle Unicode punctuation properly.
 func Title(s []byte) []byte {
        // Use a closure here to remember state.
        // Hackish but effective. Depends on Map scanning in order and calling
index 263fa02babdaa0315bb0e3b9c6a5fd229ce7e602..2c893fcedd50cc76be58d225f9acc536191a41fb 100644 (file)
@@ -492,10 +492,10 @@ func isSeparator(r rune) bool {
        return unicode.IsSpace(r)
 }
 
-// BUG(r): The rule Title uses for word boundaries does not handle Unicode punctuation properly.
-
 // Title returns a copy of the string s with all Unicode letters that begin words
 // mapped to their title case.
+//
+// BUG(r): The rule Title uses for word boundaries does not handle Unicode punctuation properly.
 func Title(s string) string {
        // Use a closure here to remember state.
        // Hackish but effective. Depends on Map scanning in order and calling