Removed the confusing FnOnce example. closes #47091
This commit is contained in:
@@ -184,15 +184,6 @@ pub trait FnMut<Args> : FnOnce<Args> {
|
|||||||
/// [nomicon]: ../../nomicon/hrtb.html
|
/// [nomicon]: ../../nomicon/hrtb.html
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
|
||||||
/// ## Calling a by-value closure
|
|
||||||
///
|
|
||||||
/// ```
|
|
||||||
/// let x = 5;
|
|
||||||
/// let square_x = move || x * x;
|
|
||||||
/// assert_eq!(square_x(), 25);
|
|
||||||
/// ```
|
|
||||||
///
|
|
||||||
/// ## Using a `FnOnce` parameter
|
/// ## Using a `FnOnce` parameter
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|||||||
Reference in New Issue
Block a user