Skip to content

Commit 1c1991d

Browse files
committed
Fix GridFS method documentation example
1 parent aeac33f commit 1c1991d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/grid/fs_bucket.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ def open_upload_stream(filename, opts = {})
359359
# chunks collection. After all the chunks have been uploaded, it creates a files collection
360360
# document for the filename in the files collection.
361361
#
362-
# @example Open a stream to which the contents of a file came be written.
363-
# fs.open_upload_stream('a-file.txt')
362+
# @example Upload a file to the GridFS bucket.
363+
# fs.upload_from_stream('a-file.txt')
364364
#
365365
# @param [ String ] filename The filename of the file to upload.
366366
# @param [ IO ] io The source io stream to upload from.

0 commit comments

Comments
 (0)