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.
1 parent 9271df9 commit 806c043Copy full SHA for 806c043
library/core/src/slice/mod.rs
@@ -1620,8 +1620,11 @@ impl<T> [T] {
1620
///
1621
/// # Panics
1622
1623
- /// Panics if `N` is zero. This check will most probably get changed to a compile time
1624
- /// error before this method gets stabilized.
+ /// Panics if `N` is zero.
+ ///
1625
+ /// Note that this check is against a const generic parameter, not a runtime
1626
+ /// value, and thus a particular monomorphization will either always panic
1627
+ /// or it will never panic.
1628
1629
/// # Examples
1630
0 commit comments