diff --git a/docs/tutorial/gridfs.txt b/docs/tutorial/gridfs.txt
index 61070d861645284eca536ac3a6e43ed6125eb9e4..d302fcbf79be2a2eb4dd4709b7499885c037b02c 100644
--- a/docs/tutorial/gridfs.txt
+++ b/docs/tutorial/gridfs.txt
@@ -87,9 +87,9 @@ To open a download stream and read from it:
    $bucket = (new MongoDB\Client)->example->selectGridFSBucket();
 
    $stream = $bucket->openDownloadStream($fileId);
-   $contents = file_get_contents($stream);
+   $contents = stream_get_contents($stream);
 
-To download the file all at once and write it to an writable stream:
+To download the file all at once and write it to a writable stream:
 
 .. code-block:: php
 
@@ -136,7 +136,7 @@ particular file:
    $bucket = (new MongoDB\Client)->example->selectGridFSBucket();
 
    $stream = $bucket->openDownloadStreamByName('my-file.txt', ['revision' => 0]);
-   $contents = file_get_contents($stream);
+   $contents = stream_get_contents($stream);
 
 Deleting Files
 --------------