From 6990bc124fdc7e129968855ab6b81fce94b0e26a Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 31 Jan 2011 14:41:36 -0800 Subject: [PATCH] doc/progs: make sure all programs compile and run Fixes #1455. R=rsc CC=golang-dev https://golang.org/cl/4079055 --- doc/progs/run | 4 ++-- doc/progs/strings.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/progs/run b/doc/progs/run index 29f1f81528f..241e65dfadf 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 0ec25f8e809..2cdb6101a09 100644 --- a/doc/progs/strings.go +++ b/doc/progs/strings.go @@ -4,7 +4,6 @@ package main -import "fmt" import "os" func main() {