Skip to content

Commit 806c043

Browse files
committed
document
1 parent 9271df9 commit 806c043

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

library/core/src/slice/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,8 +1620,11 @@ impl<T> [T] {
16201620
///
16211621
/// # Panics
16221622
///
1623-
/// Panics if `N` is zero. This check will most probably get changed to a compile time
1624-
/// error before this method gets stabilized.
1623+
/// Panics if `N` is zero.
1624+
///
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.
16251628
///
16261629
/// # Examples
16271630
///

0 commit comments

Comments
 (0)