fix Functor docs

This commit is contained in:
AF 2023-05-18 02:38:11 +00:00
parent c20df8108b
commit 8b4c5d0b43

View File

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