Add <code> style to 'append' function
This commit is contained in:
parent
1b53607cd5
commit
45080c435b
@ -30,7 +30,7 @@ func main() {
|
|||||||
// arrays. One is the builtin `append`, which
|
// arrays. One is the builtin `append`, which
|
||||||
// returns a slice containing one or more new values.
|
// returns a slice containing one or more new values.
|
||||||
// Note that we need to accept a return value from
|
// 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, "d")
|
||||||
s = append(s, "e", "f")
|
s = append(s, "e", "f")
|
||||||
fmt.Println("apd:", s)
|
fmt.Println("apd:", s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user