diff --git a/src/Init/Prelude.lean b/src/Init/Prelude.lean index e55fd8785c..06361a426c 100644 --- a/src/Init/Prelude.lean +++ b/src/Init/Prelude.lean @@ -145,7 +145,7 @@ Examples: The constant function that ignores its argument. If `a : α`, then `Function.const β a : β → α` is the “constant function with value `a`”. For all -arguments `b : β`, `Function.const β a b = a`. +arguments `b : β`, `Function.const β a b = a`. It is often written directly as `fun _ => a`. Examples: * `Function.const Bool 10 true = 10` @@ -3754,7 +3754,7 @@ class Functor (f : Type u → Type v) : Type (max (u+1) v) where /-- Mapping a constant function. - Given `a : α` and `v : f α`, `mapConst a v` is equivalent to `Function.const _ a <$> v`. For some + Given `a : α` and `v : f β`, `mapConst a v` is equivalent to `(fun _ => a) <$> v`. For some functors, this can be implemented more efficiently; for all other functors, the default implementation may be used. -/