diff options
author | Rob Pike <r@golang.org> | 2011-01-31 14:41:36 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-01-31 14:41:36 -0800 |
commit | 63f78d183e8217b7deb8304607a8878bc7fbe807 (patch) | |
tree | 2b2daa38a55794cec77779062365bb4b46afe3f2 | |
parent | 47221f164e1036e135a1052bf289ec82dea438a1 (diff) | |
download | go-63f78d183e8217b7deb8304607a8878bc7fbe807.tar.gz |
doc/progs: make sure all programs compile and run
Fixes issue 1455.
R=rsc
CC=golang-dev
http://codereview.appspot.com/4079055
-rwxr-xr-x | doc/progs/run | 4 | ||||
-rw-r--r-- | doc/progs/strings.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/doc/progs/run b/doc/progs/run index 29f1f8152..241e65dfa 100755 --- a/doc/progs/run +++ b/doc/progs/run @@ -29,9 +29,8 @@ for i in \ sieve.go \ sieve1.go \ server1.go \ + strings.go \ ; do - BASE=$(basename $i .go) - $GC $i done @@ -58,6 +57,7 @@ testit helloworld "" "Hello, world; or Καλημέρα κόσμε; or こんに testit helloworld3 "" "hello, world can't open file; err=no such file or directory" testit echo "hello, world" "hello, world" testit sum "" "6" +testit strings "" "" alphabet=abcdefghijklmnopqrstuvwxyz rot13=nopqrstuvwxyzabcdefghijklm diff --git a/doc/progs/strings.go b/doc/progs/strings.go index 0ec25f8e8..2cdb6101a 100644 --- a/doc/progs/strings.go +++ b/doc/progs/strings.go @@ -4,7 +4,6 @@ package main -import "fmt" import "os" func main() { |