_content/doc: update generics tutorial to not mention constraints package
Following decision in golang/go#50792 Change-Id: I71d74b4b386aacef5319663c397479cac6feb32f Reviewed-on: https://go-review.googlesource.com/c/website/+/383694 Reviewed-by: DO NOT USE <iant@google.com> Reviewed-by: Eli Bendersky <eliben@google.com>
This commit is contained in:
Родитель
c4c0da89ae
Коммит
ac99473d6b
|
@ -468,10 +468,6 @@ Generic Sums with Constraint: 46 and 62.97
|
||||||
|
|
||||||
Nicely done! You've just introduced yourself to generics in Go.
|
Nicely done! You've just introduced yourself to generics in Go.
|
||||||
|
|
||||||
If you want to keep experimenting, you can try writing the `Number` interface
|
|
||||||
in terms of `constraints.Integer` and `constraints.Float`, to allow more
|
|
||||||
numeric types.
|
|
||||||
|
|
||||||
Suggested next topics:
|
Suggested next topics:
|
||||||
|
|
||||||
* The [Go Tour](https://tour.golang.org/welcome/1) is a great step-by-step
|
* The [Go Tour](https://tour.golang.org/welcome/1) is a great step-by-step
|
||||||
|
|
Загрузка…
Ссылка в новой задаче