From: Rob Pike Date: Sat, 16 Mar 2013 00:08:07 +0000 (-0700) Subject: bytes,string: move the BUG to the comment of the function it's about X-Git-Tag: go1.1rc2~468 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=464257eeffedcf2c9e04fd8c47edc1f1fc491b62;p=gostls13.git bytes,string: move the BUG to the comment of the function it's about 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 --- diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go index 3bab65ef90..00ce37da08 100644 --- a/src/pkg/bytes/bytes.go +++ b/src/pkg/bytes/bytes.go @@ -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 diff --git a/src/pkg/strings/strings.go b/src/pkg/strings/strings.go index 263fa02bab..2c893fcedd 100644 --- a/src/pkg/strings/strings.go +++ b/src/pkg/strings/strings.go @@ -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