mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-18 18:53:04 +00:00
Fix doc comment in lint declaration
This commit is contained in:
parent
3b58d66b22
commit
4ac348b308
@ -23,7 +23,7 @@ declare_clippy_lint! {
|
||||
/// ```rust
|
||||
/// use std::future::Future;
|
||||
///
|
||||
/// fn foo() -> Future<Output = i32> { async { 42 } }
|
||||
/// fn foo() -> impl Future<Output = i32> { async { 42 } }
|
||||
/// ```
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
|
Loading…
Reference in New Issue
Block a user