Correct type hints

This commit is contained in:
Michael Klishin 2013-07-06 04:38:05 +04:00
parent a04596cdc5
commit f37db1fa84
2 changed files with 3 additions and 4 deletions

View file

@ -227,7 +227,7 @@
;; monger.collection/find-and-modify
;;
(defn ^DBObject find-and-modify
(defn ^IPersistentMap find-and-modify
"Atomically modify a document (at most one) and return it.
EXAMPLES:

View file

@ -126,7 +126,7 @@
;; monger.multi.collection/find-and-modify
;;
(defn ^DBObject find-and-modify
(defn ^IPersistentMap find-and-modify
"Like monger.collection/find-and-modify but always takes a database as explicit argument"
([^DB db ^String collection ^Map conditions ^Map document & {:keys [fields sort remove return-new upsert keywordize] :or
{fields nil sort nil remove false return-new false upsert false keywordize true}}]
@ -358,4 +358,3 @@
(.distinct (.getCollection db (name collection)) ^String (to-db-object key)))
([^DB db ^String collection ^String key ^Map query]
(.distinct (.getCollection db (name collection)) ^String (to-db-object key) (to-db-object query))))