mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
change Title to ToTitle for consistency. (the doc comment was already right)
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=35572 CL=35572
This commit is contained in:
parent
86cfaf66a7
commit
5743fb594f
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ func ToLower(s string) string {
|
|||
}
|
||||
|
||||
// ToTitle returns a copy of the string s with all Unicode letters mapped to their title case.
|
||||
func Title(s string) string {
|
||||
func ToTitle(s string) string {
|
||||
return Map(unicode.ToTitle, s)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue