summaryrefslogtreecommitdiff
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
commita82bdf049a2e4899a61283bfbe911df3a19a9b41 (patch)
treeded91bb1ff114ecb38376653ff550b28770c28e2 /test/helloworld.go
parenteaeba3a481074022279836afc101c8c28a6841f8 (diff)
downloadgolang-a82bdf049a2e4899a61283bfbe911df3a19a9b41.tar.gz
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 ae1f264f5..83d6b8551 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;
}