diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index 6b63f2b1f0a..2ec58c04cd6 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -106,7 +106,7 @@ /// /// **Example** /// ```rust,ignore - /// fn get_node_data(n: Node) -> Option> { + /// fn get_data() -> Option> { /// None /// } /// ``` @@ -120,7 +120,7 @@ /// None, // Was None /// } /// - /// fn get_node_data(n: Node) -> Contents { + /// fn get_data() -> Contents { /// Contents::None /// } /// ```