diff options
| author | Simon Farnsworth <simon@farnz.org.uk> | 2020-04-02 14:28:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-02 14:28:25 +0100 |
| commit | f3f1babc1b226bc0083f5941468025f5008f428b (patch) | |
| tree | 6778ea1f049a3b3439bf2de712c97e53a8ef50d4 | |
| parent | db3423f46a4e54f0f5aef16da2e263fee29770b5 (diff) | |
| download | rust-f3f1babc1b226bc0083f5941468025f5008f428b.tar.gz rust-f3f1babc1b226bc0083f5941468025f5008f428b.zip | |
Update types.rs
| -rw-r--r-- | clippy_lints/src/types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ declare_clippy_lint! { /// /// **Example** /// ```rust,ignore - /// fn get_node_data(n: Node) -> Option<Option<u32>> { + /// fn get_data() -> Option<Option<u32>> { /// None /// } /// ``` @@ -120,7 +120,7 @@ declare_clippy_lint! { /// None, // Was None /// } /// - /// fn get_node_data(n: Node) -> Contents { + /// fn get_data() -> Contents { /// Contents::None /// } /// ``` |
