summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2011-04-26 15:26:16 -0700
committerAaron <aaron@10gen.com>2011-05-02 10:33:52 -0700
commit2c0521528152b6fc2b23cb77f9bc714f3398c6ac (patch)
tree4f35197b6b3d424d0c66628659270f5c8c250126 /util
parent4786360d414f6b4421a71456222866c9a4f033fa (diff)
downloadmongo-2c0521528152b6fc2b23cb77f9bc714f3398c6ac.tar.gz
comments
Diffstat (limited to 'util')
-rw-r--r--util/mongoutils/str.h4
1 files changed, 2 insertions, 2 deletions
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;