Skip to content

Commit adefe39

Browse files
committed
refactoring io example
replace ioutil.Discard
1 parent 6b48433 commit adefe39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_examples/io/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"crypto/rand"
55
"io"
6-
"io/ioutil"
76
"time"
87

98
"github.com/vbauerster/mpb/v8"
@@ -45,7 +44,7 @@ func main() {
4544
defer proxyReader.Close()
4645

4746
// copy from proxyReader, ignoring errors
48-
_, _ = io.Copy(ioutil.Discard, proxyReader)
47+
_, _ = io.Copy(io.Discard, proxyReader)
4948

5049
p.Wait()
5150
}

0 commit comments

Comments
 (0)