]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: strings,bytes: deprecate Title
authorsmasher164 <aindurti@gmail.com>
Sat, 6 Nov 2021 06:59:00 +0000 (02:59 -0400)
committerDmitri Shuralyov <dmitshur@golang.org>
Mon, 8 Nov 2021 14:49:56 +0000 (14:49 +0000)
Updates #48367.

Change-Id: Ib8fc6d9dd7c3c6a70fefe077615f51a71d9c42ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/361899
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>

doc/go1.18.html

index b86e9078746cf86abd08a81171edd1d46025501f..44c56444fcd098fa5c911a2509245fffd6d95189 100644 (file)
@@ -214,6 +214,12 @@ Do not send CLs removing the interior tags from such phrases.
     <p><!-- CL 332771 -->
       TODO: <a href="https://golang.org/cl/332771">https://golang.org/cl/332771</a>: avoid allocations in Trim/TrimLeft/TrimRight
     </p>
+
+    <p><!-- CL 359485 -->
+      The <a href="/pkg/bytes/#Title"><code>Title</code></a> function is now deprecated. It doesn't
+      handle Unicode punctuation and language-specific capitalization rules, and is superseded by the
+      <a href="https://golang.org/x/text/cases">golang.org/x/text/cases</a> package.
+    </p>
   </dd>
 </dl><!-- bytes -->
 
@@ -342,6 +348,12 @@ Do not send CLs removing the interior tags from such phrases.
     <p><!-- CL 332771 -->
       TODO: <a href="https://golang.org/cl/332771">https://golang.org/cl/332771</a>: avoid allocations in Trim/TrimLeft/TrimRight
     </p>
+
+    <p><!-- CL 359485 -->
+      The <a href="/pkg/strings/#Title"><code>Title</code></a> function is now deprecated. It doesn't
+      handle Unicode punctuation and language-specific capitalization rules, and is superseded by the
+      <a href="https://golang.org/x/text/cases">golang.org/x/text/cases</a> package.
+    </p>
   </dd>
 </dl><!-- strings -->