Skip to content

Commit 56ecc47

Browse files
committed
minor: docs
1 parent 494d451 commit 56ecc47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mongo/connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def initialize(host=nil, port=nil, options={})
118118
# @param opts Takes the same options as Connection.new
119119
#
120120
# @example
121-
# Connection.new([["db1.example.com", 27017],
121+
# Connection.paired([["db1.example.com", 27017],
122122
# ["db2.example.com", 27017]])
123123
#
124124
# @example
125-
# Connection.new([["db1.example.com", 27017],
125+
# Connection.paired([["db1.example.com", 27017],
126126
# ["db2.example.com", 27017]],
127127
# :pool_size => 20, :timeout => 5)
128128
#

lib/mongo/gridfs/grid_file_system.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def open(filename, mode, opts={})
105105
# Delete the file with the given filename. Note that this will delete
106106
# all versions of the file.
107107
#
108-
# Note that deleting a GridFS file can result in read errors if another process
108+
# Be careful with this. Deleting a GridFS file can result in read errors if another process
109109
# is attempting to read a file while it's being deleted. While the odds for this
110110
# kind of race condition are small, it's important to be aware of.
111111
#

0 commit comments

Comments
 (0)