Skip to content

Commit 8c0d76b

Browse files
committed
Update for change in const lint name.
1 parent 1f7cb6a commit 8c0d76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/array-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ in a _panicked state_ if it fails.
6262

6363
```rust,should_panic
6464
// lint is deny by default.
65-
#![warn(const_err)]
65+
#![warn(unconditional_panic)]
6666
6767
([1, 2, 3, 4])[2]; // Evaluates to 3
6868

0 commit comments

Comments
 (0)