mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
f98b8a00db
commit
464257eeff
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue