From 56ecc470f5f661eade74e826f10f4d9e7faea12c Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 19 Apr 2010 12:16:45 -0400 Subject: [PATCH] minor: docs --- lib/mongo/connection.rb | 4 ++-- lib/mongo/gridfs/grid_file_system.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index 7ff50d2..e2669f2 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -118,11 +118,11 @@ module Mongo # @param opts Takes the same options as Connection.new # # @example - # Connection.new([["db1.example.com", 27017], + # Connection.paired([["db1.example.com", 27017], # ["db2.example.com", 27017]]) # # @example - # Connection.new([["db1.example.com", 27017], + # Connection.paired([["db1.example.com", 27017], # ["db2.example.com", 27017]], # :pool_size => 20, :timeout => 5) # diff --git a/lib/mongo/gridfs/grid_file_system.rb b/lib/mongo/gridfs/grid_file_system.rb index 241291c..b789b71 100644 --- a/lib/mongo/gridfs/grid_file_system.rb +++ b/lib/mongo/gridfs/grid_file_system.rb @@ -105,7 +105,7 @@ module Mongo # Delete the file with the given filename. Note that this will delete # all versions of the file. # - # Note that deleting a GridFS file can result in read errors if another process + # Be careful with this. Deleting a GridFS file can result in read errors if another process # is attempting to read a file while it's being deleted. While the odds for this # kind of race condition are small, it's important to be aware of. #