Skip to content

Commit e7b5295

Browse files
committed
Fix file read example in Readme
1 parent 76494e6 commit e7b5295

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ $filesystem->getContents('test.txt')->then(function($contents) {
6969
Which is a convenience method for:
7070

7171
```php
72-
$filesystem->open('test.txt')->then(function($stream) {
72+
$filesystem->file('test.txt')->open('r')->then(function($stream) {
7373
return React\Stream\BufferedSink::createPromise($stream);
7474
})->then(function($contents) {
75+
// ...
7576
});
7677
```
7778

0 commit comments

Comments
 (0)