]> Cypherpunks.ru repositories - gostls13.git/commitdiff
builtin: fix signature of the builtin function make
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 13 May 2017 15:49:15 +0000 (15:49 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 13 May 2017 16:16:48 +0000 (16:16 +0000)
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>
src/builtin/builtin.go

index 281de0b436883b22d68c207944635c9f44c8a4a3..dc166837ae6b62a13d9aa467074307e99333b021 100644 (file)
@@ -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