From ea7b1968a9ce81458f3f0908f963ea2d62eb796a Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Wed, 1 Jun 2016 21:37:16 -0700 Subject: [PATCH] Fixed utility function calls in testing example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da4c956..db20817 100644 --- a/README.md +++ b/README.md @@ -201,8 +201,8 @@ func TestExist(t *testing.T) { appFS = afero.NewMemMapFs() // create test files and directories appFS.MkdirAll("src/a", 0755)) - appFS.WriteFile("src/a/b", []byte("file b"), 0644) - appFS.WriteFile("src/c", []byte("file c"), 0644) + afero.WriteFile(appFS, "src/a/b", []byte("file b"), 0644) + afero.WriteFile(appFS, "src/c", []byte("file c"), 0644) _, err := appFS.Stat("src/c") if os.IsNotExist(err) { t.Errorf("file \"%s\" does not exist.\n", name)