Skip to content

Commit 1cb90cc

Browse files
authored
Merge pull request rust-lang#3314 from matthiaskrgr/mem_forget_sample
mem_forget: fix syntax error in code sample
2 parents 601cc9d + c492818 commit 1cb90cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/mem_forget.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::utils::{match_def_path, opt_def_id, paths, span_lint};
2323
///
2424
/// **Example:**
2525
/// ```rust
26-
/// mem::forget(Rc::new(55)))
26+
/// mem::forget(Rc::new(55))
2727
/// ```
2828
declare_clippy_lint! {
2929
pub MEM_FORGET,

0 commit comments

Comments
 (0)