From 8b4c5d0b43a561887d77985399b3f447ae0061ed Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 18 May 2023 02:38:11 +0000 Subject: [PATCH] fix `Functor` docs --- src/func.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/func.rs b/src/func.rs index 9b09ec6..5c7d872 100644 --- a/src/func.rs +++ b/src/func.rs @@ -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. /// ```