]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add constraints package documentation
authorJeremy Faller <jeremy@golang.org>
Wed, 1 Dec 2021 18:41:10 +0000 (13:41 -0500)
committerJeremy Faller <jeremy@golang.org>
Thu, 2 Dec 2021 22:03:11 +0000 (22:03 +0000)
Updates #47694

Change-Id: I3239023dad194c317e271e6093eff2cfbed1a4b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/368314
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 285b44946e4dcfea546a16e3e952ce5232e3a86f..6c246b8b7bec1d64e5a407afb1f85a018c51f325 100644 (file)
@@ -258,7 +258,9 @@ proposal</a>.
 <h3 id="constraints">New <code>constraints</code> package</h3>
 
 <p><!-- CL 349709 -->
-  TODO: <a href="https://golang.org/cl/349709">https://golang.org/cl/349709</a>: constraints: new package
+  The new <a href="/pkg/constraints/"><code>constraints</code></a> package
+  defines a set of useful constraints that can be used with type parameters of
+  generic functions.
 </p>
 
 <h3 id="netip">New <code>net/netip</code> package</h3>