We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OwnedIterator
1 parent d56c792 commit bf327feCopy full SHA for bf327fe
compio-buf/src/iter.rs
@@ -4,8 +4,8 @@ use crate::*;
4
pub trait OwnedIterator: IntoInner + Sized {
5
/// Get the next iterator.
6
///
7
- /// If current `Self` is the last one, return `Err(Self)` with `Self` being
8
- /// untouched.
+ /// If current `Self` is the last one, return `Err(Self::Inner)` to give the
+ /// inner back.
9
fn next(self) -> Result<Self, Self::Inner>;
10
}
11
0 commit comments