From f296adf819b0c2d20b7b44d04f947602b43f226c Mon Sep 17 00:00:00 2001 From: Oling Cat Date: Tue, 25 Dec 2012 14:54:24 -0800 Subject: [PATCH] fmt: update an old comment; fix a typo. R=golang-dev, iant CC=golang-dev, minux.ma https://golang.org/cl/6998055 --- src/pkg/fmt/print.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/fmt/print.go b/src/pkg/fmt/print.go index dce46d8a68..cb06991a6f 100644 --- a/src/pkg/fmt/print.go +++ b/src/pkg/fmt/print.go @@ -310,7 +310,7 @@ func getField(v reflect.Value, i int) reflect.Value { return val } -// Convert ASCII to integer. n is 0 (and got is false) if no number present. +// parsenum converts ASCII to integer. num is 0 (and isnum is false) if no number present. func parsenum(s string, start, end int) (num int, isnum bool, newi int) { if start >= end { return 0, false, end @@ -1123,7 +1123,7 @@ func (p *pp) doPrint(a []interface{}, addspace, addnewline bool) { prevString := false for fieldnum := 0; fieldnum < len(a); fieldnum++ { p.fmt.clearflags() - // always add spaces if we're doing println + // always add spaces if we're doing Println field := a[fieldnum] if fieldnum > 0 { isString := field != nil && reflect.TypeOf(field).Kind() == reflect.String -- 2.48.1