summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo
diff options
context:
space:
mode:
authorKamran Khan <kamran.khan@mongodb.com>2015-03-12 19:00:11 -0400
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-03-13 12:48:00 -0400
commit9a94198ef9ef196077402f7bf4b7e0ab47df740a (patch)
tree18f35d13edec19e062481ea9fdf7d662d3c2ba00 /src/mongo/db/geo
parent5f64a1c4c3eb6698dfa2e721972a158202229bb0 (diff)
downloadmongo-9a94198ef9ef196077402f7bf4b7e0ab47df740a.tar.gz
SERVER-17576 Fix typos in parseFlatPoint
Closes #934 Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com>
Diffstat (limited to 'src/mongo/db/geo')
-rw-r--r--src/mongo/db/geo/geoparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/geo/geoparser.cpp b/src/mongo/db/geo/geoparser.cpp
index 5fd1c86a741..570b82454c6 100644
--- a/src/mongo/db/geo/geoparser.cpp
+++ b/src/mongo/db/geo/geoparser.cpp
@@ -79,9 +79,9 @@ namespace mongo {
if (!allowAddlFields && it.more()) { return BAD_VALUE("Point must only contain two numeric elements"); }
out->x = x.number();
out->y = y.number();
- // Point coordinates must must be finite numbers, neither NaN or infinite.
+ // Point coordinates must be finite numbers, neither NaN or infinite.
if (!std::isfinite(out->x) || !std::isfinite(out->y)) {
- return BAD_VALUE("Point coordinates must must be finite numbers");
+ return BAD_VALUE("Point coordinates must be finite numbers");
}
return Status::OK();
}