range clause must have = or :=

:= illegal in for-increment

R=r
OCL=21204
CL=21204
This commit is contained in:
Ken Thompson 2008-12-15 13:44:27 -08:00
parent 7df571aef7
commit ae5a475e20
5 changed files with 15 additions and 14 deletions

View file

@ -64,7 +64,7 @@ export func TestJsonMap(t *testing.T) {
if mapv == nil {
t.Fatalf("StringToJson(%#q) => nil, %v, %v", mapstr, ok, errtok);
}
for k,v range values {
for k,v := range values {
if v1 := mapv.Get(k); !Equal(v1, v) {
t.Errorf("MapTest: Walk(%#q) => %v, want %v", k, v1, v);
}