mirror of
https://github.com/golang/go.git
synced 2025-05-30 19:52:53 +00:00
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>
This commit is contained in:
parent
66b5a2f3f0
commit
1fcd7861e3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user