aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/builtin/builtin.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/builtin/builtin.go')
-rw-r--r--libgo/go/builtin/builtin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/builtin/builtin.go b/libgo/go/builtin/builtin.go
index 1c7c041..4578c85 100644
--- a/libgo/go/builtin/builtin.go
+++ b/libgo/go/builtin/builtin.go
@@ -171,8 +171,9 @@ func cap(v Type) int
// Slice: The size specifies the length. The capacity of the slice is
// equal to its length. A second integer argument may be provided to
// specify a different capacity; it must be no smaller than the
-// length, so make([]int, 0, 10) allocates a slice of length 0 and
-// capacity 10.
+// length. For example, make([]int, 0, 10) allocates an underlying array
+// of size 10 and returns a slice of length 0 and capacity 10 that is
+// backed by this underlying array.
// Map: An empty map is allocated with enough space to hold the
// specified number of elements. The size may be omitted, in which case
// a small starting size is allocated.