aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/strings/strings.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-03-15 17:08:07 -0700
committerRob Pike <r@golang.org>2013-03-15 17:08:07 -0700
commit464257eeffedcf2c9e04fd8c47edc1f1fc491b62 (patch)
tree5ab7c45884f6b6cb3f8703a2a3b53a63c0dd1f95 /src/pkg/strings/strings.go
parentf98b8a00db9283930ee8f00046e9d87c673b0dca (diff)
downloadgo-464257eeffedcf2c9e04fd8c47edc1f1fc491b62.tar.xz
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
Diffstat (limited to 'src/pkg/strings/strings.go')
-rw-r--r--src/pkg/strings/strings.go4
1 files changed, 2 insertions, 2 deletions
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