diff options
author | Aaron <aaron@10gen.com> | 2011-04-26 15:26:16 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-05-02 10:33:52 -0700 |
commit | 2c0521528152b6fc2b23cb77f9bc714f3398c6ac (patch) | |
tree | 4f35197b6b3d424d0c66628659270f5c8c250126 | |
parent | 4786360d414f6b4421a71456222866c9a4f033fa (diff) | |
download | mongo-2c0521528152b6fc2b23cb77f9bc714f3398c6ac.tar.gz |
comments
-rw-r--r-- | db/queryutil.h | 2 | ||||
-rw-r--r-- | util/mongoutils/str.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/db/queryutil.h b/db/queryutil.h index e68b67f5b28..6445cf7b5fc 100644 --- a/db/queryutil.h +++ b/db/queryutil.h @@ -222,7 +222,7 @@ namespace mongo { * indexes and the other representing constraints for multi key indexes and * unindexed scans. In several member functions the caller is asked to * supply an index so that the implementation may utilize the proper - * FieldRangeSet and return results that are appropriate with respect to the + * FieldRangeSet and return results that are appropriate with respect to that * supplied index. */ class FieldRangeSetPair { diff --git a/util/mongoutils/str.h b/util/mongoutils/str.h index 1231ccd727b..07e1c92c8d9 100644 --- a/util/mongoutils/str.h +++ b/util/mongoutils/str.h @@ -104,13 +104,13 @@ namespace mongoutils { return strchr(s.c_str(), x) != 0; } - /** @return everything befor the character x, else entire string */ + /** @return everything before the character x, else entire string */ inline string before(const string& s, char x) { const char *p = strchr(s.c_str(), x); return (p != 0) ? s.substr(0, p-s.c_str()) : s; } - /** @return everything befor the string x, else entire string */ + /** @return everything before the string x, else entire string */ inline string before(const string& s, const string& x) { const char *p = strstr(s.c_str(), x.c_str()); return (p != 0) ? s.substr(0, p-s.c_str()) : s; |