commit | 5b75384820aef1828b1714cc1d876f70ed545089 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sun Nov 21 17:52:17 2021 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Nov 22 01:53:17 2021 +0000 |
tree | 4be1c062fc07900aa08b1fa85d595b5d54feea0d | |
parent | a3a48f680e7015a5229c5de9193a1d70c664e284 [diff] |
design/43651-type-parameters: use ~ in SliceConstraint Change-Id: Ifb4c3bcdc382d64b469616f311399af6fbe180f1 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/366014 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/design/43651-type-parameters.md b/design/43651-type-parameters.md index 64f29ea..454059e 100644 --- a/design/43651-type-parameters.md +++ b/design/43651-type-parameters.md
@@ -2074,7 +2074,7 @@ // SliceConstraint is a type constraint that matches a slice of // the type parameter. type SliceConstraint[T any] interface { - []T + ~[]T } // Map takes a slice of some element type and a transformation function,