Skip to content

Commit c42fb4f

Browse files
authored
Merge pull request #214 from Denys-Bushulyak/patch-2
Update lib.rs
2 parents 1665629 + 3c874f6 commit c42fb4f

File tree

1 file changed

+1
-0
lines changed
  • examples/02_02_future_trait/src

1 file changed

+1
-0
lines changed

examples/02_02_future_trait/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ where
125125
// the second!
126126
Poll::Ready(()) => self.first.take(),
127127
// We couldn't yet complete the first future.
128+
// Notice that we disrupt the flow of the `pool` function with the `return` statement.
128129
Poll::Pending => return Poll::Pending,
129130
};
130131
}

0 commit comments

Comments
 (0)