summaryrefslogtreecommitdiff
path: root/libgo/go/io/ioutil/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/io/ioutil/example_test.go')
-rw-r--r--libgo/go/io/ioutil/example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/io/ioutil/example_test.go b/libgo/go/io/ioutil/example_test.go
index bc2b6fba736..78b0730c652 100644
--- a/libgo/go/io/ioutil/example_test.go
+++ b/libgo/go/io/ioutil/example_test.go
@@ -125,7 +125,7 @@ func ExampleReadFile() {
func ExampleWriteFile() {
message := []byte("Hello, Gophers!")
- err := ioutil.WriteFile("testdata/hello", message, 0644)
+ err := ioutil.WriteFile("hello", message, 0644)
if err != nil {
log.Fatal(err)
}