Gen apply comment
authorMike Curtiss <mcurtiss@fb.com>
Thu, 16 May 2013 18:16:37 +0000 (11:16 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 23 May 2013 21:33:22 +0000 (14:33 -0700)
Summary: Comment

Test Plan: Builds

Reviewed By: tjackson@fb.com

FB internal diff: D814986

folly/experimental/Gen-inl.h

index 6a90d26651ef8385cd07865642c01bc6149e221c..e8861d0bb9f87181efe2d22b324df4928d37abfc 100644 (file)
@@ -156,10 +156,10 @@ class GenImpl : public FBounded<Self> {
 
   /**
    * apply() - Send all values produced by this generator to given
-   * handler until the handler returns false. Returns true until the handler
-   * returns false. GOTCHA: It should return true even if it completes (without
-   * the handler returning false), as 'Chain' uses the return value of apply
-   * to determine if it should process the second object in its chain.
+   * handler until the handler returns false. Returns false if and only if the
+   * handler returns false. Note: It should return true even if it completes
+   * (without the handler returning false), as 'Chain' uses the return value of
+   * apply to determine if it should process the second object in its chain.
    */
   template<class Handler>
   bool apply(Handler&& handler) const;