From 5f58e00ca565c8964dbf89f510236f72951d0bab Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Thu, 17 Sep 2020 09:53:19 +0200 Subject: [PATCH 1/2] fix array_windows docs --- library/core/src/slice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 8e9d1eb98a8..9e716c487c1 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1034,7 +1034,7 @@ impl [T] { /// /// This is the const generic equivalent of [`windows`]. /// - /// If `N` is smaller than the size of the array, it will return no windows. + /// If `N` is greater than the size of the array, it will return no windows. /// /// # Panics /// From 764d307963db8c50a47a9828a4c2eeea74d54007 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Thu, 17 Sep 2020 10:30:28 +0200 Subject: [PATCH 2/2] docs `array` -> `slice` Co-authored-by: est31 --- library/core/src/slice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 9e716c487c1..a3a1715b75e 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1034,7 +1034,7 @@ impl [T] { /// /// This is the const generic equivalent of [`windows`]. /// - /// If `N` is greater than the size of the array, it will return no windows. + /// If `N` is greater than the size of the slice, it will return no windows. /// /// # Panics ///