aboutsummaryrefslogtreecommitdiff
path: root/test/helloworld.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-27 14:15:06 -0700
committerRob Pike <r@golang.org>2008-06-27 14:15:06 -0700
commit34cb7c299eb151f8d316b48f63e5d5cafcbee2e0 (patch)
treeded91bb1ff114ecb38376653ff550b28770c28e2 /test/helloworld.go
parent3719aa4d9ab3672ebb4c82bcabfa2a57ecb6e596 (diff)
downloadgo-34cb7c299eb151f8d316b48f63e5d5cafcbee2e0.tar.gz
go-34cb7c299eb151f8d316b48f63e5d5cafcbee2e0.zip
export sys.exit
update tests to use exit rather than return ignore return value from main (actually done in prior CL) SVN=125173
Diffstat (limited to 'test/helloworld.go')
-rw-r--r--test/helloworld.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/helloworld.go b/test/helloworld.go
index ae1f264f54..83d6b85513 100644
--- a/test/helloworld.go
+++ b/test/helloworld.go
@@ -6,7 +6,6 @@
package main
-func main() int {
+func main() {
print "hello, world\n";
- return 0;
}