• 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
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...