aboutsummaryrefslogtreecommitdiff
path: root/src/mime/quotedprintable/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime/quotedprintable/example_test.go')
-rw-r--r--src/mime/quotedprintable/example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mime/quotedprintable/example_test.go b/src/mime/quotedprintable/example_test.go
index 5a9ab450a3..e5a479a3a7 100644
--- a/src/mime/quotedprintable/example_test.go
+++ b/src/mime/quotedprintable/example_test.go
@@ -6,7 +6,7 @@ package quotedprintable_test
import (
"fmt"
- "io/ioutil"
+ "io"
"mime/quotedprintable"
"os"
"strings"
@@ -18,7 +18,7 @@ func ExampleNewReader() {
`invalid escape: <b style="font-size: 200%">hello</b>`,
"Hello, Gophers! This symbol will be unescaped: =3D and this will be written in =\r\none line.",
} {
- b, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(s)))
+ b, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(s)))
fmt.Printf("%s %v\n", b, err)
}
// Output: