X-Git-Url: http://www.git.cypherpunks.ru/?p=netstring.git;a=blobdiff_plain;f=ns.go;h=b99e29fbafa4339294b4c12ef258af69900d7425;hp=2fbc2a532024103612075d1285d6b900988e5ba8;hb=a18a32de157074e4fe823333c96aa7de96fdc409;hpb=a5c555089e9e9ed32342ad08986ab8019169a9de diff --git a/ns.go b/ns.go index 2fbc2a5..b99e29f 100644 --- a/ns.go +++ b/ns.go @@ -31,5 +31,5 @@ along with this program. If not, see . // size, err := r.Next() // size is 5 // r.Discard() // skip that chunk // size, err = r.Next() // size is 6 -// data, _ := ioutil.ReadAll(r) // data contains "world!" +// data, _ := io.ReadAll(r) // data contains "world!" package netstring