]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: update an old comment; fix a typo.
authorOling Cat <olingcat@gmail.com>
Tue, 25 Dec 2012 22:54:24 +0000 (14:54 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 25 Dec 2012 22:54:24 +0000 (14:54 -0800)
R=golang-dev, iant
CC=golang-dev, minux.ma
https://golang.org/cl/6998055

src/pkg/fmt/print.go

index dce46d8a687dd0d8786fee1e276beb4533a94ac2..cb06991a6fa87c1b0350a167d98b6781920c86d3 100644 (file)
@@ -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