From 9a94198ef9ef196077402f7bf4b7e0ab47df740a Mon Sep 17 00:00:00 2001 From: Kamran Khan Date: Thu, 12 Mar 2015 19:00:11 -0400 Subject: SERVER-17576 Fix typos in parseFlatPoint Closes #934 Signed-off-by: Ramon Fernandez --- src/mongo/db/geo/geoparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.1