summaryrefslogtreecommitdiff
path: root/test/235.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-18 22:37:22 -0800
committerRuss Cox <rsc@golang.org>2008-12-18 22:37:22 -0800
commit803b4ce450fdc923110e0526fbc3aeb2ad07cc63 (patch)
tree851fad01a87b8fa071ed46fa0985f1857d9e47ca /test/235.go
parentf4b61f0294171954ffe0c1ef4b9cdb2fb2bb7e22 (diff)
downloadgo-803b4ce450fdc923110e0526fbc3aeb2ad07cc63.tar.gz
convert *[] to [].
R=r OCL=21563 CL=21571
Diffstat (limited to 'test/235.go')
-rw-r--r--test/235.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/235.go b/test/235.go
index da1a3a750..47d6b58ac 100644
--- a/test/235.go
+++ b/test/235.go
@@ -20,7 +20,7 @@ func M(f uint64) (in, out *T) {
}
-func min(xs *[]uint64) uint64 {
+func min(xs []uint64) uint64 {
m := xs[0];
for i := 1; i < len(xs); i++ {
if xs[i] < m {
@@ -33,7 +33,7 @@ func min(xs *[]uint64) uint64 {
func main() {
F := []uint64{2, 3, 5};
- const n = len(F);
+ var n = len(F);
OUT := []uint64{
2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36,
40, 45, 48, 50, 54, 60, 64, 72, 75, 80, 81, 90, 96, 100, 108, 120, 125,