diff options
| author | Christian <chris_veenman@hotmail.com> | 2019-08-24 13:36:57 +0200 |
|---|---|---|
| committer | Christian <chris_veenman@hotmail.com> | 2019-08-24 13:36:57 +0200 |
| commit | a577316b0a136b5ca980032cf1dbe683103ba15f (patch) | |
| tree | 46bc200faa39d3d877ea9e7edc359a257d82eb80 | |
| parent | 478464570e60523adc6d303577d1782229ca1f93 (diff) | |
| download | rust-a577316b0a136b5ca980032cf1dbe683103ba15f.tar.gz rust-a577316b0a136b5ca980032cf1dbe683103ba15f.zip | |
Removed the confusing FnOnce example. closes #47091
| -rw-r--r-- | src/libcore/ops/function.rs | 9 |
1 files changed, 0 insertions, 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<Args> : FnOnce<Args> { /// [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 /// /// ``` |
