Skip to content
Snippets Groups Projects
Commit 790d6053 authored by Daniel Martí's avatar Daniel Martí
Browse files

all: append(bytes, str...) works out of the box

From the append docs in the builtin package:

	As a special case, it is legal to append a string to a byte slice, like this:

	slice = append([]byte("hello "), "world"...)

Change-Id: Ib14039a7476873b12a3aefccd8863e8d628b9249
Reviewed-on: https://go-review.googlesource.com/c/go/+/425102


Reviewed-by: default avatarhopehook <hopehook@qq.com>
Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
Reviewed-by: default avatarDavid Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
parent 44d057d5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment