Removed the confusing FnOnce example. closes #47091
This commit is contained in:
parent
478464570e
commit
a577316b0a
1 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
///
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue