summaryrefslogtreecommitdiff
path: root/doc/progs/print_string.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-01-15 13:48:11 -0800
committerRob Pike <r@golang.org>2009-01-15 13:48:11 -0800
commit8024c6e3aec249fcc40b62e8879d30207e879be9 (patch)
treea72b91ed6b55c7c4635039376af421a98695ad60 /doc/progs/print_string.go
parentd6b313278a61f109ab8b71dd8c77a40ff557b819 (diff)
downloadgolang-8024c6e3aec249fcc40b62e8879d30207e879be9.tar.gz
printf->Printf etc.
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
Diffstat (limited to 'doc/progs/print_string.go')
-rw-r--r--doc/progs/print_string.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/print_string.go b/doc/progs/print_string.go
index 47d4a4b9d..c435d4eae 100644
--- a/doc/progs/print_string.go
+++ b/doc/progs/print_string.go
@@ -9,10 +9,10 @@ import "fmt"
type T struct { a int; b string }
func (t *T) String() string {
- return fmt.sprint(t.a) + " " + t.b
+ return fmt.Sprint(t.a) + " " + t.b
}
func main() {
t := &T{77, "Sunset Strip"};
- fmt.println(t)
+ fmt.Println(t)
}