Skip to content

Commit 02739dc

Browse files
author
Marc
committed
Fixed wrong example in $centerSphere documentation
1 parent 17ac6d4 commit 02739dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/centerSphere.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $centerSphere
1717

1818
.. code-block:: javascript
1919

20-
db.collection.find( { loc: { $within: { $centerSphere: { [0,0], 10 / 3959 } } } } )
20+
db.collection.find( { loc: { $within: { $centerSphere: [ [0,0], 10 / 3959 ] } } } )
2121

2222
This query will return all documents within a 10 mile radius of
2323
``[0,0]`` using a spherical geometry to calculate distances.

0 commit comments

Comments
 (0)