mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
// 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);
|
return Map(unicode.ToTitle, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue