From 39ef59cadda955ff78f6c0ed353fe3cece796c7b Mon Sep 17 00:00:00 2001 From: Ishan Vyas Date: Mon, 1 Aug 2022 09:59:51 +0530 Subject: [PATCH] Fix formatting in readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75ad8f6..b147667 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,9 @@ $filesystem->directory( The following will create `with-a-file.txt` in `lets/make/a/nested/directory` and write `This is amazing!` into that file. ```php -use React\Filesystem\Node\FileInterface;$filesystem->file( +use React\Filesystem\Node\FileInterface; + +$filesystem->file( __DIR__ . 'lets' . DIRECTORY_SEPARATOR . 'make' . DIRECTORY_SEPARATOR . 'a' . DIRECTORY_SEPARATOR . 'nested' . DIRECTORY_SEPARATOR . 'directory' . DIRECTORY_SEPARATOR . 'with-a-file.txt' )->createFile()->then(function (FileInterface $file) { return $file->putContents('This is amazing!')