Update example in folly::gen
authorJordan DeLong <jdelong@fb.com>
Mon, 4 Feb 2013 03:58:18 +0000 (19:58 -0800)
committerJordan DeLong <jdelong@fb.com>
Mon, 4 Feb 2013 17:26:28 +0000 (09:26 -0800)
Summary: asVector() doesn't exist.

Test Plan: Nope.

Reviewed By: tjackson@fb.com

FB internal diff: D697240

folly/experimental/Gen.h

index 8d23e1ab3542bb1edac5b2cfeacbeec55fc2e5a6..444fb8ef625803b57723c73761bc18ae378739a0 100644 (file)
@@ -56,7 +56,7 @@
  * As an example, the 'lengths' generator (above) won't actually invoke the
  * provided lambda until values are needed:
  *
- *   auto lengthVector = lengths | asVector();
+ *   auto lengthVector = lengths | as<std::vector>();
  *   auto totalLength = lengths | sum;
  *
  * 'auto' is useful in here because the actual types of the generators objects