• Rob Pike's avatar
    fmt: one bad index shouldn't spoil them all · 3e3ed5d9
    Rob Pike authored
    In an indexed verb such as %[3]d, if the index is out of range, don't
    skip processing the rest of the verbs. The bug was that the bad
    index set a bit for the whole format instead of just the verb.
    
    Ok for 1.2 because this is a bug in a 1.2 feature.
    
    Fixes #6434
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/13632058
    3e3ed5d9
Name
Last commit
Last update
..
doc.go Loading commit data...
export_test.go Loading commit data...
fmt_test.go Loading commit data...
format.go Loading commit data...
print.go Loading commit data...
scan.go Loading commit data...
scan_test.go Loading commit data...
stringer_test.go Loading commit data...