Skip to content

Commit a707f50

Browse files
committed
printJson actually doesn't work
in MongoDB shell version: 2.0.7-rc0 (winXP) "printJson" causes: ReferenceError: printJson is not defined (shell eval):1 "printjson" works fine
1 parent 8ac4f53 commit a707f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/mongo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ the :option:`--eval <mongo --eval>` option, use the following form:
255255

256256
.. code-block:: sh
257257

258-
mongo --eval 'db.collection.find().forEach(printJson)'
258+
mongo --eval 'db.collection.find().forEach(printjson)'
259259

260260
Use single quotes (e.g. ``'``) to enclose the JavaScript, as well as
261261
the additional JavaScript required to generate this output.

0 commit comments

Comments
 (0)