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 | 6990bc124fdc7e129968855ab6b81fce94b0e26a (patch) | |
tree | 3af19729d62f5daeb913cc1d761f081c59d83998 | |
parent | 31d7efd4d25ff555871b9cc6463f94c6f59f9ecf (diff) | |
download | go-6990bc124fdc7e129968855ab6b81fce94b0e26a.tar.gz go-6990bc124fdc7e129968855ab6b81fce94b0e26a.zip |
doc/progs: make sure all programs compile and run
Fixes #1455.
R=rsc
CC=golang-dev
https://golang.org/cl/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 29f1f81528..241e65dfad 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 0ec25f8e80..2cdb6101a0 100644 --- a/doc/progs/strings.go +++ b/doc/progs/strings.go @@ -4,7 +4,6 @@ package main -import "fmt" import "os" func main() { |