mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
fix example code
This commit is contained in:
parent
0e59259add
commit
0c82fd01c7
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
/// ```no_run
|
||||
/// fn side_effect(): i32 {
|
||||
/// fn side_effect() -> i32 {
|
||||
/// println!("side effect");
|
||||
/// 10
|
||||
/// }
|
||||
|
@ -29,7 +29,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
/// Use instead:
|
||||
/// ```no_run
|
||||
/// fn side_effect(): i32 {
|
||||
/// fn side_effect() -> i32 {
|
||||
/// println!("side effect");
|
||||
/// 10
|
||||
/// }
|
||||
|
|
Loading…
Add table
Reference in a new issue