aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/strings
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-10-10 18:56:13 -0700
committerRob Pike <r@golang.org>2009-10-10 18:56:13 -0700
commit5743fb594f54de1979a4dd8f97849968b484acee (patch)
treef5a945045a9a80dbeabb46b70633766cad4966d3 /src/pkg/strings
parent86cfaf66a747cc89fea5942c4c82107b744d76a4 (diff)
downloadgo-5743fb594f54de1979a4dd8f97849968b484acee.tar.xz
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
Diffstat (limited to 'src/pkg/strings')
-rw-r--r--src/pkg/strings/strings.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/strings/strings.go b/src/pkg/strings/strings.go
index 4883d392cd..bb1b8b2311 100644
--- a/src/pkg/strings/strings.go
+++ b/src/pkg/strings/strings.go
@@ -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)
}