Skip to content

Commit 598fd73

Browse files
committed
ioutil -> io
1 parent 7dc62cc commit 598fd73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ them. The CopyFile example shows how it works:
5353
The try package provides convenient helpers to check the errors. For example,
5454
instead of
5555
56-
b, err := ioutil.ReadAll(r)
56+
b, err := io.ReadAll(r)
5757
if err != nil {
5858
return err
5959
}
6060
6161
we can write
6262
63-
b := try.To1(ioutil.ReadAll(r))
63+
b := try.To1(io.ReadAll(r))
6464
6565
Note that try.ToX functions are as fast as if err != nil statements. Please see
6666
the try package documentation for more information about the error checks.

0 commit comments

Comments
 (0)