• Nodir Turakulov's avatar
    fmt: check newline in the end of input · 8331f19d
    Nodir Turakulov authored
    Sscanf doc says:
    Newlines in the input must match newlines in the format.
    
    However Sscanf didn't check newline in the end of input (EOF).
    A test for the case is broken.
    
    * check newline in EOF
    * fix the test
    * slightly simplify ss.doScanf
    
    Fixes #12788
    
    Change-Id: Iaf6b7d81324a72e557543ac22ecea5cecb72e0d6
    Reviewed-on: https://go-review.googlesource.com/16165
    Run-TryBot: Rob Pike <r@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    8331f19d
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...
norace_test.go Loading commit data...
print.go Loading commit data...
race_test.go Loading commit data...
scan.go Loading commit data...
scan_test.go Loading commit data...
stringer_test.go Loading commit data...