clojurewerkz/monger.docs — pull request #15 by microamp (2014-09-08 09:50:31+00:00)
Title: Add missing curly braces in upsert example

Going through some of the examples from 'Getting started', I noticed

```clojure
(let [conn (mg/connect)
db (mg/get-db conn "monger-test")
coll "documents"]
;; insert a few documents
(mc/update db "scores" {:player "sam"} {:score 1088} :upsert true))
```

raises the compile error,

```
ArityException Wrong number of args (6) passed to: collection/update clojure.lang.AFn.throwArity (AFn.java:429)
```

And can confirm that it works when it's replaced with the following (with the last arg as a hash map)

```clojure
(mc/update db "scores" {:player "sam"} {:score 1088} {:upsert true})
```

```
=> #
```

Thanks for reviewing.