From 2b686aaa84b6a628024fd147dd542a29c0bf0b9e Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 13 Jun 2024 19:50:27 -0700 Subject: [PATCH] change function name to match method name Change the lambda's name to match that of the corresponding method name (`double`) in the subsequent example. --- _overviews/scala3-book/fp-functions-are-values.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala3-book/fp-functions-are-values.md b/_overviews/scala3-book/fp-functions-are-values.md index e656d3c9f9..c23d68773e 100644 --- a/_overviews/scala3-book/fp-functions-are-values.md +++ b/_overviews/scala3-book/fp-functions-are-values.md @@ -20,7 +20,7 @@ You’ve seen this in multiple places in this book, whenever methods like `map` ```scala val nums = (1 to 10).toList -val doubles = nums.map(_ * 2) // double each value +val double = nums.map(_ * 2) // double each value val lessThanFive = nums.filter(_ < 5) // List(1,2,3,4) ``` {% endtab %}