]> Cypherpunks.ru repositories - netstring.git/blobdiff - ns.go
io/ioutil is deprecated since Go 1.16
[netstring.git] / ns.go
diff --git a/ns.go b/ns.go
index 340460698707f6e273df7d65b7f1c3b5fa32eaf7..b99e29fbafa4339294b4c12ef258af69900d7425 100644 (file)
--- a/ns.go
+++ b/ns.go
@@ -1,6 +1,6 @@
 /*
 netstring -- netstring format serialization library
-Copyright (C) 2015-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2015-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -31,5 +31,5 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //   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