Skip to content

Commit

Permalink
Removed the confusing FnOnce example. closes #47091
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Aug 24, 2019
1 parent 4784645 commit a577316
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/libcore/ops/function.rs
Expand Up @@ -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
///
/// ```
Expand Down

0 comments on commit a577316

Please sign in to comment.