Skip to content

Commit 9547a7f

Browse files
committed
update and fix doc
1 parent 60e94f6 commit 9547a7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ declare_lint! {
17041704
}
17051705

17061706
declare_lint! {
1707-
/// The `recursive_dafault_impl` lint detects functions that cannot
1707+
/// The `recursive_default_impl` lint detects Default impls that cannot
17081708
/// return without calling themselves.
17091709
///
17101710
/// ### Example
@@ -1718,9 +1718,8 @@ declare_lint! {
17181718
/// Self {
17191719
/// ..Default::default()
17201720
/// }
1721+
/// }
17211722
/// }
1722-
///
1723-
/// let _ = Foo::default();
17241723
/// ```
17251724
///
17261725
/// {{produces}}

0 commit comments

Comments
 (0)