Skip to content

Commit a0afe45

Browse files
authored
clarify a comment w.r.t. empty slice (#571)
* fix: Added go for routines - Correct doc * fix: applied PR reviews * fix: build file
1 parent 9f92e06 commit a0afe45

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/slices/slices.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func main() {
1717
var s []string
1818
fmt.Println("uninit:", s, s == nil, len(s) == 0)
1919

20-
// To create an empty slice with non-zero length, use
20+
// To create a slice with non-zero length, use
2121
// the builtin `make`. Here we make a slice of
2222
// `string`s of length `3` (initially zero-valued).
2323
// By default a new slice's capacity is equal to its

examples/slices/slices.hash

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
522c14373ae9581dd3001be32530cdf940637646
2-
kiy1StxorBF
1+
891d4ef82ef90184a5e1f0f24b6cb2fcc2f58e6e
2+
L9rtMOCQOVn

public/slices

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)