Skip to content

Commit

Permalink
spec: add comment marker for consistency.
Browse files Browse the repository at this point in the history
LGTM=r
R=gri, r
CC=golang-codereviews
https://golang.org/cl/185830043
  • Loading branch information
dsymonds committed Dec 3, 2014
1 parent 9f04a62 commit 583b29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/go_spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5579,7 +5579,7 @@ <h3 id="Appending_and_copying_slices">Appending to and copying slices</h3>
s4 := append(s3[3:6], s3[2:]...) // append overlapping slice s4 == []int{3, 5, 7, 2, 3, 5, 7, 0, 0}

var t []interface{}
t = append(t, 42, 3.1415, "foo") t == []interface{}{42, 3.1415, "foo"}
t = append(t, 42, 3.1415, "foo") // t == []interface{}{42, 3.1415, "foo"}

var b []byte
b = append(b, "bar"...) // append string contents b == []byte{'b', 'a', 'r' }
Expand Down

0 comments on commit 583b29c

Please sign in to comment.