Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 4, 2021
1 parent 91aabea commit 4922b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestSomething(t *testing.T) {
tmpfs := testfs.New(t)
testfile := "foo/bar/foobar"
_ = tmpfs.MkdirAll(filepath.Dir(testfile), 0o764)
_= tmpfs.WriteFile(testfile, []byte("example"), 0o644)
_ = tmpfs.WriteFile(testfile, []byte("example"), 0o644)

// you can now use tmpfs as a fs.FS...
// fs.WalkDir(tmpfs, ".", func(path string, d fs.DirEntry, err error) error { return nil })
Expand Down

0 comments on commit 4922b9c

Please sign in to comment.