Removed the confusing FnOnce example. closes #47091

This commit is contained in:
Christian 2019-08-24 13:36:57 +02:00
parent 478464570e
commit a577316b0a

View File

@ -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
///
/// ```