From 4fa5c4398a7400220e1148ada328b4a12bf97a83 Mon Sep 17 00:00:00 2001 From: cranst0n Date: Mon, 30 Jan 2017 09:32:19 -0500 Subject: [PATCH] Fix typo in applicative doc. --- docs/src/main/tut/typeclasses/applicative.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/tut/typeclasses/applicative.md b/docs/src/main/tut/typeclasses/applicative.md index 1b666db9b5..b4c26cf9d0 100644 --- a/docs/src/main/tut/typeclasses/applicative.md +++ b/docs/src/main/tut/typeclasses/applicative.md @@ -99,7 +99,7 @@ val char: Option[Char] = Some('a') int.map(i => (c: Char) => f(i, c)) // what now? ``` -We have an `Option[Char => Double]` and an `Option[Double]` to which we want to apply the function to, +We have an `Option[Char => Double]` and an `Option[Char]` to which we want to apply the function to, but `map` doesn't give us enough power to do that. Hence, `ap`. ## Applicatives compose