Skip to content

Commit da2beab

Browse files
authored
Rollup merge of #104403 - koka831:lint-doc, r=Dylan-DPC
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
2 parents aea4c0c + a9e4176 commit da2beab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_lint/src/let_underscore.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ declare_lint! {
1111
/// scope.
1212
///
1313
/// ### Example
14-
/// ```
14+
///
15+
/// ```rust
1516
/// struct SomeStruct;
1617
/// impl Drop for SomeStruct {
1718
/// fn drop(&mut self) {

0 commit comments

Comments
 (0)