From a577316b0a136b5ca980032cf1dbe683103ba15f Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 24 Aug 2019 13:36:57 +0200 Subject: [PATCH] Removed the confusing FnOnce example. closes #47091 --- src/libcore/ops/function.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libcore/ops/function.rs b/src/libcore/ops/function.rs index b9552eaa1a0..9bb1ae8572b 100644 --- a/src/libcore/ops/function.rs +++ b/src/libcore/ops/function.rs @@ -184,15 +184,6 @@ pub trait FnMut : FnOnce { /// [nomicon]: ../../nomicon/hrtb.html /// /// # Examples -/// -/// ## Calling a by-value closure -/// -/// ``` -/// let x = 5; -/// let square_x = move || x * x; -/// assert_eq!(square_x(), 25); -/// ``` -/// /// ## Using a `FnOnce` parameter /// /// ```