Skip to content

Commit da29084

Browse files
committed
edits
1 parent f4a4f85 commit da29084

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/write/gridfs.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,11 @@ Use the ``MongoDB\GridFS\Bucket::rename()`` method to update the name of
378378
a GridFS file in your bucket. Pass the following parameters to the ``rename()``
379379
method:
380380

381-
- ``_id`` value of the document you want to rename
381+
- ``_id`` value of the file you want to rename
382382
- New file name
383383

384384
The following example shows how to update the ``filename`` field to
385-
``'new_file_name'`` by referencing a document's ``_id`` field:
385+
``'new_file_name'`` by referencing a file's ``_id`` value:
386386

387387
.. literalinclude:: /includes/write/gridfs.php
388388
:language: php
@@ -426,7 +426,7 @@ The following example shows you how to delete a file by referencing its ``_id``
426426

427427
Alternatively, you can use the ``MongoDB\GridFS\Bucket::deleteByName()`` method
428428
to delete a file and all its file revisions. Pass the ``filename`` value of the
429-
files you want to delete as a parameter to the ``deleteByName()`` method, as shown
429+
file you want to delete as a parameter to the ``deleteByName()`` method, as shown
430430
in the following code:
431431

432432
.. literalinclude:: /includes/write/gridfs.php

0 commit comments

Comments
 (0)