• Roger Peppe's avatar
    fmt: allow recursive calls to Fscan etc. · 81bfbe93
    Roger Peppe authored
    Add a new Read method to ScanState so that it
    satisfies the io.Reader interface; rename
    Getrune and Ungetrune to ReadRune and UnreadRune.
    Make sure ReadRune does not read past width restrictions;
    remove now-unnecessary Width method from ScanState.
    Also make the documentation a little clearer as to
    how ReadRune and UnreadRune are used.
    
    R=r, r2
    CC=golang-dev
    https://golang.org/cl/4240056
    81bfbe93
doc.go 7.09 KB