diff options
author | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
commit | bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891 (patch) | |
tree | 9d0faf1d96579f8c9fb0321586cab7c5149ccdf1 /test/string_lit.go | |
parent | 7293dab5a9e4d0fb4b66fd76bab2572bbebc050d (diff) | |
download | go-bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891.tar.gz go-bc2f5f1dce1687d0aff0d51ea1b56a5d52aa3891.zip |
fix bug depot:
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
Diffstat (limited to 'test/string_lit.go')
-rw-r--r-- | test/string_lit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/string_lit.go b/test/string_lit.go index 9ef8f931d3..2196214845 100644 --- a/test/string_lit.go +++ b/test/string_lit.go @@ -11,7 +11,7 @@ var ecode int; func assert(a, b, c string) { if a != b { ecode = 1; - print "FAIL: ", c, ": ", a, "!=", b, "\n"; + print("FAIL: ", c, ": ", a, "!=", b, "\n"); var max int = len(a); if len(b) > max { max = len(b); @@ -26,7 +26,7 @@ func assert(a, b, c string) { bc = int(b[i]); } if ac != bc { - print "\ta[", i, "] = ", ac, "; b[", i, "] =", bc, "\n"; + print("\ta[", i, "] = ", ac, "; b[", i, "] =", bc, "\n"); } } } |