From 7636530195eca76c1b3cfe88e08ee03a0fa7c956 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 6 Oct 2009 11:42:55 -0700 Subject: apply gofmt to the LGTM-marked files from 34501 that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383 --- doc/progs/print_string.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc/progs/print_string.go') diff --git a/doc/progs/print_string.go b/doc/progs/print_string.go index 13a8d8241..7526f79fb 100644 --- a/doc/progs/print_string.go +++ b/doc/progs/print_string.go @@ -6,13 +6,16 @@ package main import "fmt" -type testType struct { a int; b string } +type testType struct { + a int; + b string; +} func (t *testType) String() string { - return fmt.Sprint(t.a) + " " + t.b + return fmt.Sprint(t.a) + " " + t.b; } func main() { t := &testType{77, "Sunset Strip"}; - fmt.Println(t) + fmt.Println(t); } -- cgit v1.2.3