From 0d092cf0b9e97eb21b5d98875e70fa37c1f38577 Mon Sep 17 00:00:00 2001 From: passionSeven Date: Mon, 7 Feb 2022 05:57:49 -0800 Subject: [PATCH] _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 Reviewed-by: Eli Bendersky --- _content/doc/tutorial/generics.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/_content/doc/tutorial/generics.md b/_content/doc/tutorial/generics.md index 06251f13..2c1b5ff2 100644 --- a/_content/doc/tutorial/generics.md +++ b/_content/doc/tutorial/generics.md @@ -468,10 +468,6 @@ Generic Sums with Constraint: 46 and 62.97 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: * The [Go Tour](https://tour.golang.org/welcome/1) is a great step-by-step