Add <code> style to 'append' function

This commit is contained in:
oohira 2017-01-14 00:28:38 +09:00
parent 1b53607cd5
commit 45080c435b

View File

@ -30,7 +30,7 @@ func main() {
// arrays. One is the builtin `append`, which
// returns a slice containing one or more new values.
// Note that we need to accept a return value from
// append as we may get a new slice value.
// `append` as we may get a new slice value.
s = append(s, "d")
s = append(s, "e", "f")
fmt.Println("apd:", s)