From bf327fecad99d35a644e63900c30ff0afa3e2b68 Mon Sep 17 00:00:00 2001 From: George Miao Date: Mon, 15 Jul 2024 13:58:05 +0900 Subject: [PATCH] doc(buf): update `OwnedIterator` doc --- compio-buf/src/iter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compio-buf/src/iter.rs b/compio-buf/src/iter.rs index f95a6627..68634e4f 100644 --- a/compio-buf/src/iter.rs +++ b/compio-buf/src/iter.rs @@ -4,8 +4,8 @@ use crate::*; pub trait OwnedIterator: IntoInner + Sized { /// Get the next iterator. /// - /// If current `Self` is the last one, return `Err(Self)` with `Self` being - /// untouched. + /// If current `Self` is the last one, return `Err(Self::Inner)` to give the + /// inner back. fn next(self) -> Result; }