diff --git a/README.md b/README.md index a094979431f..3626fd34182 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ func main() { mod, _ := wazero.StartWASICommandFromSource(r, source) defer mod.Close() - // "file system!\n", the contents of input.txt, is copied to output.txt. + // "file system!", the contents of input.txt, is copied to output.txt. output, _ := fs.ReadFile(memFS, "output.txt") fmt.Println(string(output)) } diff --git a/examples/file_system_test.go b/examples/file_system_test.go index 02b6570c6f4..1e7901cfe54 100644 --- a/examples/file_system_test.go +++ b/examples/file_system_test.go @@ -74,5 +74,5 @@ func Test_file_system(t *testing.T) { // So, the result "output.txt" should contain "Hello, file system!\n". out, err := fs.ReadFile(memFS, "output.txt") require.NoError(t, err) - require.Equal(t, "Hello, file system!\n", string(out)) + require.Equal(t, "Hello, file system!", string(out)) } diff --git a/examples/testdata/file_system_input/input.txt b/examples/testdata/file_system_input/input.txt index 0da8ad36712..86a09d8042b 100644 --- a/examples/testdata/file_system_input/input.txt +++ b/examples/testdata/file_system_input/input.txt @@ -1 +1 @@ -file system! +file system! \ No newline at end of file