fix Functor
docs
This commit is contained in:
parent
c20df8108b
commit
8b4c5d0b43
@ -52,7 +52,8 @@ pub trait WeakFunctor {
|
|||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// Why does it fail to compile? `.map` expects `FnMut` (or we can think of it being `Fn`, doesn't matter here). But what we provide it (`f`) is
|
/// Why does it fail to compile? `.map` expects `FnMut` (or we can think of it being `Fn`, doesn't matter here).
|
||||||
|
/// But what we provide it (`f`) is only `FnOnce`.
|
||||||
///
|
///
|
||||||
/// For Haskell-style Functors, use [`clone_func::CloneFunctor`] instead.
|
/// For Haskell-style Functors, use [`clone_func::CloneFunctor`] instead.
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user