diff options
author | Rob Pike <r@golang.org> | 2009-01-15 17:54:07 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-01-15 17:54:07 -0800 |
commit | ec57a60bebcacf864189f04e538db6eed25e8286 (patch) | |
tree | 56d8004bbe6a6396df32bfa0b67a427365527356 /doc/progs/print_string.go | |
parent | f4c0107ad4f6e67579347a0f99b8e9fa470f985a (diff) | |
download | golang-ec57a60bebcacf864189f04e538db6eed25e8286.tar.gz |
casify tutorial examples
will bring document in line in a later CL, which may include revisiting some of the names
R=rsc
DELTA=58 (0 added, 0 deleted, 58 changed)
OCL=22906
CL=22908
Diffstat (limited to 'doc/progs/print_string.go')
-rw-r--r-- | doc/progs/print_string.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/progs/print_string.go b/doc/progs/print_string.go index c435d4eae..13a8d8241 100644 --- a/doc/progs/print_string.go +++ b/doc/progs/print_string.go @@ -6,13 +6,13 @@ package main import "fmt" -type T struct { a int; b string } +type testType struct { a int; b string } -func (t *T) String() string { +func (t *testType) String() string { return fmt.Sprint(t.a) + " " + t.b } func main() { - t := &T{77, "Sunset Strip"}; + t := &testType{77, "Sunset Strip"}; fmt.Println(t) } |