mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
docs: fix lint name for unused_variables
This commit is contained in:
parent
5fa0af2327
commit
aa40c48c36
@ -7804,7 +7804,7 @@ Version 0.7 (2013-07-03)
|
||||
* extra: Implementation of fixed output size variations of SHA-2.
|
||||
|
||||
* Tooling
|
||||
* `unused_variable` lint mode for unused variables (default: warn).
|
||||
* `unused_variables` lint mode for unused variables (default: warn).
|
||||
* `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
|
||||
(default: warn).
|
||||
* `unused_mut` lint mode for identifying unused `mut` qualifiers
|
||||
|
@ -35,7 +35,7 @@ talk about later in this section.
|
||||
## warn
|
||||
|
||||
The 'warn' lint level will produce a warning if you violate the lint. For example,
|
||||
this code runs afoul of the `unused_variable` lint:
|
||||
this code runs afoul of the `unused_variables` lint:
|
||||
|
||||
```rust
|
||||
pub fn foo() {
|
||||
|
Loading…
Reference in New Issue
Block a user