commit | 69c4e9380bdd34eefe8c1e49f203964a17e5bee3 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Wed Oct 27 19:47:23 2010 -0700 |
committer | Russ Cox <rsc@golang.org> | Wed Oct 27 19:47:23 2010 -0700 |
tree | ab3120dbe4a74ec3f609ab678fc1cef7a1943506 | |
parent | d8b5d039cd1bec151cc325973ff32bd34ebb0456 [diff] [blame] |
use append R=gri, r, r2 CC=golang-dev https://golang.org/cl/2743042
diff --git a/src/pkg/flag/flag_test.go b/src/pkg/flag/flag_test.go index 83bf7ee..5fb7649 100644 --- a/src/pkg/flag/flag_test.go +++ b/src/pkg/flag/flag_test.go
@@ -161,10 +161,7 @@ } func (f *flagVar) Set(value string) bool { - n := make(flagVar, len(*f)+1) - copy(n, *f) - *f = n - (*f)[len(*f)-1] = value + *f = append(*f, value) return true }