Skip to content

Commit 2b686aa

Browse files
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.
1 parent 8a82765 commit 2b686aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/fp-functions-are-values.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You’ve seen this in multiple places in this book, whenever methods like `map`
2020
```scala
2121
val nums = (1 to 10).toList
2222

23-
val doubles = nums.map(_ * 2) // double each value
23+
val double = nums.map(_ * 2) // double each value
2424
val lessThanFive = nums.filter(_ < 5) // List(1,2,3,4)
2525
```
2626
{% endtab %}

0 commit comments

Comments
 (0)