Commit b88cb304 authored by Jordan DeLong's avatar Jordan DeLong

Update example in folly::gen

Summary: asVector() doesn't exist.

Test Plan: Nope.

Reviewed By: tjackson@fb.com

FB internal diff: D697240
parent 482a5011
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* As an example, the 'lengths' generator (above) won't actually invoke the * As an example, the 'lengths' generator (above) won't actually invoke the
* provided lambda until values are needed: * provided lambda until values are needed:
* *
* auto lengthVector = lengths | asVector(); * auto lengthVector = lengths | as<std::vector>();
* auto totalLength = lengths | sum; * auto totalLength = lengths | sum;
* *
* 'auto' is useful in here because the actual types of the generators objects * 'auto' is useful in here because the actual types of the generators objects
......
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