diff options
| author | Ian Lance Taylor <iant@golang.org> | 2021-11-21 17:52:17 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2021-11-22 01:53:17 +0000 |
| commit | 5b75384820aef1828b1714cc1d876f70ed545089 (patch) | |
| tree | 4be1c062fc07900aa08b1fa85d595b5d54feea0d | |
| parent | a3a48f680e7015a5229c5de9193a1d70c664e284 (diff) | |
| download | go-x-proposal-5b75384820aef1828b1714cc1d876f70ed545089.tar.xz | |
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>
| -rw-r--r-- | design/43651-type-parameters.md | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ There are no constraints on the second type parameter. // 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, |
