Skip to content

Commit f45f601

Browse files
authored
Fixes a bug in README
1 parent 811b676 commit f45f601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ This method accepts the following `$resource` types:
372372
$stream = GuzzleHttp\Psr7\stream_for('foo');
373373
$stream = GuzzleHttp\Psr7\stream_for(fopen('/path/to/file', 'r'));
374374

375-
$generator function ($bytes) {
375+
$generator = function ($bytes) {
376376
for ($i = 0; $i < $bytes; $i++) {
377377
yield ' ';
378378
}

0 commit comments

Comments
 (0)