From 0335937b3ca7faeefd555973e3c453e25b6da1f0 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Sat, 5 Jun 2010 22:45:37 -0400 Subject: [PATCH] minor: docs --- lib/mongo/collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index 2074aee..19f4dcd 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -434,8 +434,8 @@ module Mongo # Atomically update and return a document using MongoDB's findAndModify command. (MongoDB > 1.3.0) # - # @option opts [Hash] :update (nil) the update operation to perform on the matched document. # @option opts [Hash] :query ({}) a query selector document for matching the desired document. + # @option opts [Hash] :update (nil) the update operation to perform on the matched document. # @option opts [Array, String, OrderedHash] :sort ({}) specify a sort option for the query using any # of the sort options available for Cursor#sort. Sort order is important if the query will be matching # multiple documents since only the first matching document will be updated and returned.