From a2be0af121da403f4c6d5dd986c2526d24daa358 Mon Sep 17 00:00:00 2001 From: Ronno Das Date: Sat, 8 Aug 2026 04:24:48 +0530 Subject: [PATCH] Fix typo in `array_windows()` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 619f903bc..bd9602079 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -915,7 +915,7 @@ pub trait Itertools: Iterator { /// /// If the input iterator contains fewer than `N` items, no /// windows are returned. Otherwise, if the input iterator - /// contains `k` items, exactly `k+N-1` windows are returned. + /// contains `k` items, exactly `k-N+1` windows are returned. /// /// (This formula still applies when `N==0`, and means that `k+1` /// zero-length windows are returned for `k` input items.)