Commit 6205123a authored by Marcelo Juchem's avatar Marcelo Juchem Committed by Dave Watson

fixing split_step documentation

Summary: example results were backwards

Test Plan: unit tests

Reviewed By: brg@fb.com

FB internal diff: D1262425
parent 5ed60bc7
...@@ -575,10 +575,10 @@ public: ...@@ -575,10 +575,10 @@ public:
* folly::StringPiece s("sample string for split_next"); * folly::StringPiece s("sample string for split_next");
* auto p = s.split_step(' '); * auto p = s.split_step(' ');
* *
* // prints "sample" * // prints "string for split_next"
* cout << s << endl; * cout << s << endl;
* *
* // prints "string for split_next" * // prints "sample"
* cout << p << endl; * cout << p << endl;
* *
* Example 2: * Example 2:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment