]> Cypherpunks repositories - gostls13.git/commit
strings: clarify usage of Title and ToTitle
authorAndrew Todd <andrew.todd@wework.com>
Sat, 27 Jul 2019 23:20:49 +0000 (16:20 -0700)
committerRob Pike <r@golang.org>
Tue, 30 Jul 2019 02:52:57 +0000 (02:52 +0000)
commitfbb819ebc443518e9caea3c1b0d0f9e0efec2262
treed153c5c6138aff5431f1bdd82b546604a53fda33
parent01d137262a713b308c4308ed5b26636895e68d89
strings: clarify usage of Title and ToTitle

This is intended to help clear up confusion around the usage of the
Title and ToTitle functions. It includes a link to define title case
to distinguish it from upper case. It also includes an additional
example for the ToTitle function to showcase the difference in behavior
between it and the Title function.

Fixes #33302

Change-Id: I44e62962fb04d0d22966a39eda3a2d16de7a2291
Reviewed-on: https://go-review.googlesource.com/c/go/+/187825
Reviewed-by: Rob Pike <r@golang.org>
src/strings/example_test.go
src/strings/strings.go