]> Cypherpunks repositories - gostls13.git/commit
strings, bytes: deprecate Title
authorsmasher164 <aindurti@gmail.com>
Thu, 28 Oct 2021 21:08:22 +0000 (17:08 -0400)
committerIan Lance Taylor <iant@golang.org>
Fri, 5 Nov 2021 21:27:34 +0000 (21:27 +0000)
commit7aed6dd7e18e2ad3ac0f4eb692188ed7a90b778b
tree7ce3a74147208bfe124bb48a05ac00ebcb3ba964
parent58ec92527041f88d427390a92619cd9a927b6aba
strings, bytes: deprecate Title

Title doesn't handle Unicode punctuation and language-specific
capitalization rules. Replace the BUG comment with a Deprecated
one, suggesting a more robust alternative, and allowing Title
to be exposed to tooling.

Fixes #48367.

Change-Id: I952f1f37cd35b587a95893fb022827bdd9ec7de9
Reviewed-on: https://go-review.googlesource.com/c/go/+/359485
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
src/bytes/bytes.go
src/strings/strings.go