mirror of
https://github.com/golang/go
synced 2024-11-24 18:00:02 -07:00
fix typo/oversight: s/Title/ToTitle/. the comment was already correct
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=35964 CL=35979
This commit is contained in:
parent
1d390cec1e
commit
f1b91263d8
@ -240,7 +240,7 @@ func ToLower(s []byte) []byte {
|
||||
}
|
||||
|
||||
// ToTitle returns a copy of the byte array s with all Unicode letters mapped to their title case.
|
||||
func Title(s []byte) []byte {
|
||||
func ToTitle(s []byte) []byte {
|
||||
return Map(unicode.ToTitle, s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user