From a49385fe0052f7d6239fead01f013ca78526b453 Mon Sep 17 00:00:00 2001 From: shangchengbabaiban Date: Sat, 19 Apr 2025 11:09:04 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: shangchengbabaiban --- src/io/mod.rs | 2 +- src/iterable/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/mod.rs b/src/io/mod.rs index cd38cbc..85d2d69 100644 --- a/src/io/mod.rs +++ b/src/io/mod.rs @@ -61,7 +61,7 @@ pub trait Read { /// If the return value of this method is [`Ok(n)`], then it must be /// guaranteed that `0 <= n <= buf.len()`. A nonzero `n` value indicates /// that the buffer `buf` has been filled in with `n` bytes of data from this - /// source. If `n` is `0`, then it can indicate that the the buffer + /// source. If `n` is `0`, then it can indicate that the buffer /// specified was 0 bytes in length. /// /// No guarantees are provided about the contents of `buf` when this diff --git a/src/iterable/mod.rs b/src/iterable/mod.rs index 202c3da..39873b4 100644 --- a/src/iterable/mod.rs +++ b/src/iterable/mod.rs @@ -39,7 +39,7 @@ pub use rev::Reverse; /// assert_eq!(f(xs), g(xs)); /// ``` /// -/// # Efficency +/// # Efficiency /// /// For efficiency, functions using iterables are often times relying on /// [`Borrow`](std::borrow::Borrow) in order to avoid copying the contents of