1
0
mirror of https://github.com/golang/go synced 2024-09-25 07:30:13 -06:00

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
This commit is contained in:
Rob Pike 2013-03-15 17:08:07 -07:00
parent f98b8a00db
commit 464257eeff
2 changed files with 4 additions and 4 deletions

View File

@ -461,10 +461,10 @@ func isSeparator(r rune) bool {
return unicode.IsSpace(r) 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 // Title returns a copy of s with all Unicode letters that begin words
// mapped to their title case. // 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 { func Title(s []byte) []byte {
// Use a closure here to remember state. // Use a closure here to remember state.
// Hackish but effective. Depends on Map scanning in order and calling // Hackish but effective. Depends on Map scanning in order and calling

View File

@ -492,10 +492,10 @@ func isSeparator(r rune) bool {
return unicode.IsSpace(r) 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 // Title returns a copy of the string s with all Unicode letters that begin words
// mapped to their title case. // 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 { func Title(s string) string {
// Use a closure here to remember state. // Use a closure here to remember state.
// Hackish but effective. Depends on Map scanning in order and calling // Hackish but effective. Depends on Map scanning in order and calling