Skip to content

Commit a577316

Browse files
author
Christian
committed
Removed the confusing FnOnce example. closes #47091
1 parent 4784645 commit a577316

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/libcore/ops/function.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,6 @@ pub trait FnMut<Args> : FnOnce<Args> {
184184
/// [nomicon]: ../../nomicon/hrtb.html
185185
///
186186
/// # Examples
187-
///
188-
/// ## Calling a by-value closure
189-
///
190-
/// ```
191-
/// let x = 5;
192-
/// let square_x = move || x * x;
193-
/// assert_eq!(square_x(), 25);
194-
/// ```
195-
///
196187
/// ## Using a `FnOnce` parameter
197188
///
198189
/// ```

0 commit comments

Comments
 (0)