Skip to content

Commit

Permalink
Rollup merge of #104403 - koka831:lint-doc, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Specify language of code comment to generate document

Fix `let_underscore_drop` comment
https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#example-7
  • Loading branch information
matthiaskrgr authored Nov 15, 2022
2 parents aea4c0c + a9e4176 commit da2beab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_lint/src/let_underscore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ declare_lint! {
/// scope.
///
/// ### Example
/// ```
///
/// ```rust
/// struct SomeStruct;
/// impl Drop for SomeStruct {
/// fn drop(&mut self) {
Expand Down

0 comments on commit da2beab

Please sign in to comment.