Skip to content

Commit

Permalink
Merge pull request #764 from ehuss/fix-new-lint-name
Browse files Browse the repository at this point in the history
Update for change in const lint name.
  • Loading branch information
Centril authored Feb 21, 2020
2 parents 1f7cb6a + 8c0d76b commit 48a079f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/array-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ in a _panicked state_ if it fails.

```rust,should_panic
// lint is deny by default.
#![warn(const_err)]
#![warn(unconditional_panic)]
([1, 2, 3, 4])[2]; // Evaluates to 3
Expand Down

0 comments on commit 48a079f

Please sign in to comment.