mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
update tree for new default type rule
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5448091
This commit is contained in:
parent
be0ffbfd02
commit
a250f37cbc
13 changed files with 43 additions and 29 deletions
|
|
@ -434,7 +434,7 @@ func Title(s string) string {
|
|||
// Use a closure here to remember state.
|
||||
// Hackish but effective. Depends on Map scanning in order and calling
|
||||
// the closure once per rune.
|
||||
prev := rune(' ')
|
||||
prev := ' '
|
||||
return Map(
|
||||
func(r rune) rune {
|
||||
if isSeparator(prev) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue