Skip to content

Commit ffdc153

Browse files
committed
Fix lint example
1 parent 09693e6 commit ffdc153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_lint/src/default_could_be_derived.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ declare_lint! {
2020
/// }
2121
///
2222
/// #[deny(default_could_be_derived)]
23-
/// impl Default for Foo {
24-
/// fn default() -> Foo {
23+
/// impl Default for A {
24+
/// fn default() -> A {
2525
/// A {
2626
/// b: None,
2727
/// }

0 commit comments

Comments
 (0)