Skip to content

Commit c492818

Browse files
committed
mem_forget: fix syntax error in code sample
1 parent 601cc9d commit c492818

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)