summaryrefslogtreecommitdiff
path: root/doc/progs/print_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/print_string.go')
-rw-r--r--doc/progs/print_string.go6
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)
}