From 5ccfcf95ab4c84a3eabc17e479bac561d94c41de Mon Sep 17 00:00:00 2001 From: Jay Shepherd Date: Wed, 23 Dec 2009 11:12:46 -0600 Subject: [PATCH] minor: document fixes --- lib/mongo/connection.rb | 4 ++-- lib/mongo/db.rb | 2 +- lib/mongo/errors.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index 3b5300e..4c4e6f2 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -210,11 +210,11 @@ module Mongo end # Sends a message to the database, waits for a response, and raises - # and exception if the operation has failed. + # an exception if the operation has failed. # # Takes a MongoDB opcode, +operation+, a message of class ByteBuffer, # +message+, the +db_name+, and an optional formatted +log_message+. - # Sends the message to the databse, adding the necessary headers. + # Sends the message to the database, adding the necessary headers. def send_message_with_safe_check(operation, message, db_name, log_message=nil) message_with_headers = add_message_headers(operation, message) message_with_check = last_error_message(db_name) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 7a636b9..51ca275 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -132,7 +132,7 @@ module Mongo names.map {|name| name.sub(@name + '.', '')} end - # Retruns an array of Collection instances, one for each collection in this + # Retuns an array of Collection instances, one for each collection in this # database. def collections collection_names.map do |collection_name| diff --git a/lib/mongo/errors.rb b/lib/mongo/errors.rb index b67f1ff..ea5463a 100644 --- a/lib/mongo/errors.rb +++ b/lib/mongo/errors.rb @@ -45,7 +45,7 @@ module Mongo # Raised when a database operation fails. class OperationFailure < MongoDBError; end - # Raised when a database operation fails. + # Raised when a connection operation fails. class ConnectionFailure < MongoDBError; end # Raised when a client attempts to perform an invalid operation.