summaryrefslogtreecommitdiff
path: root/doc/progs/strings.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
committerRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
commit1ea895d9a458c9e4a91993924fcd39ce7f1dcabe (patch)
tree5b8c80c41b4110b57cef1a0945350c2caf7557e2 /doc/progs/strings.go
parent206ea17d5fe6ad6d6492afe73ec2d72ce399a3fd (diff)
downloadgolang-1ea895d9a458c9e4a91993924fcd39ce7f1dcabe.tar.gz
move things out of sys into os and runtime
R=r OCL=28569 CL=28573
Diffstat (limited to 'doc/progs/strings.go')
-rw-r--r--doc/progs/strings.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/progs/strings.go b/doc/progs/strings.go
index ee2596d8f..2c4937e38 100644
--- a/doc/progs/strings.go
+++ b/doc/progs/strings.go
@@ -5,10 +5,11 @@
package main
import "fmt"
+import "os"
func main() {
s := "hello";
- if s[1] != 'e' { sys.Exit(1) }
+ if s[1] != 'e' { os.Exit(1) }
s = "good bye";
var p *string = &s;
*p = "ciao";