Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strings: ToTitle works as ToUpper instead of capitalizing #9956

Closed
sanatgersappa opened this issue Feb 22, 2015 · 2 comments
Closed

strings: ToTitle works as ToUpper instead of capitalizing #9956

sanatgersappa opened this issue Feb 22, 2015 · 2 comments

Comments

@sanatgersappa
Copy link

Looks like a regression of #933.

See http://play.golang.org/p/27QjEvE6nC

Tested on Go 1.4.2 (windows/amd64)

@minux
Copy link
Member

minux commented Feb 22, 2015

http://golang.org/pkg/strings/#ToTitle

ToTitle returns a copy of the string s with all Unicode letters mapped to their title case.

@minux minux closed this as completed Feb 22, 2015
@mikioh mikioh changed the title strings.ToTitle works as ToUpper instead of capitalizing strings: ToTitle works as ToUpper instead of capitalizing Feb 22, 2015
@sanatgersappa
Copy link
Author

Sorry, my bad. Found that Title() does what I need.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants