diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2017-05-13 15:49:15 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-05-13 16:16:48 +0000 |
commit | 1fcd7861e388082b59827e9ce9a7eaaea877f881 (patch) | |
tree | fbc23e3bdc911205d9a50dadaffd459aafb7a709 /src/builtin | |
parent | 66b5a2f3f0b1d94f69763114a85a977f5bc0277a (diff) | |
download | go-1fcd7861e388082b59827e9ce9a7eaaea877f881.tar.gz go-1fcd7861e388082b59827e9ce9a7eaaea877f881.zip |
builtin: fix signature of the builtin function make
Fixes #20325
Change-Id: Ie363fef73d0deae40af41ee3f4403ad18546eba6
Reviewed-on: https://go-review.googlesource.com/43460
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/builtin')
-rw-r--r-- | src/builtin/builtin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtin/builtin.go b/src/builtin/builtin.go index 281de0b436..dc166837ae 100644 --- a/src/builtin/builtin.go +++ b/src/builtin/builtin.go @@ -179,7 +179,7 @@ func cap(v Type) int // Channel: The channel's buffer is initialized with the specified // buffer capacity. If zero, or the size is omitted, the channel is // unbuffered. -func make(Type, size IntegerType) Type +func make(t Type, size ...IntegerType) Type // The new built-in function allocates memory. The first argument is a type, // not a value, and the value returned is a pointer to a newly |