fixing split_step documentation
authorMarcelo Juchem <marcelo@fb.com>
Mon, 7 Apr 2014 18:58:03 +0000 (11:58 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:56 +0000 (12:53 -0700)
Summary: example results were backwards

Test Plan: unit tests

Reviewed By: brg@fb.com

FB internal diff: D1262425

folly/Range.h

index 620316ee913ae912aa483bdc6cb1a8a4acc068c3..0043c703233eee1fa8e20a5d1b1473ca9d23967c 100644 (file)
@@ -575,10 +575,10 @@ public:
    *  folly::StringPiece s("sample string for split_next");
    *  auto p = s.split_step(' ');
    *
-   *  // prints "sample"
+   *  // prints "string for split_next"
    *  cout << s << endl;
    *
-   *  // prints "string for split_next"
+   *  // prints "sample"
    *  cout << p << endl;
    *
    * Example 2: