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