]> 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 2fbc2a532024103612075d1285d6b900988e5ba8..b99e29fbafa4339294b4c12ef258af69900d7425 100644 (file)
--- a/ns.go
+++ b/ns.go
@@ -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