Skip to content

Commit 993c157

Browse files
authored
Fix typo of unused_parens (#1832)
1 parent 2d11bd6 commit 993c157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/diagnostics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ are:
523523
- Early lint pass: Works on [AST nodes] after [macro expansion] and name
524524
resolution, just before [HIR lowering]. These lints are for purely
525525
syntactical lints.
526-
- Example: The [`unsued_parens`] lint checks for parenthesized-expressions
526+
- Example: The [`unused_parens`] lint checks for parenthesized-expressions
527527
in situations where they are not needed, like an `if` condition.
528528

529529
- Late lint pass: Works on [HIR nodes], towards the end of [analysis] (after
@@ -558,7 +558,7 @@ compiler](#linting-early-in-the-compiler).
558558
[macro expansion]: macro-expansion.md
559559
[analysis]: part-4-intro.md
560560
[`keyword_idents`]: https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#keyword-idents
561-
[`unsued_parens`]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-parens
561+
[`unused_parens`]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-parens
562562
[`invalid_value`]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#invalid-value
563563
[`arithmetic_overflow`]: https://doc.rust-lang.org/rustc/lints/listing/deny-by-default.html#arithmetic-overflow
564564
[`unused_mut`]: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unused-mut

0 commit comments

Comments
 (0)