Skip to content

Commit 946dc17

Browse files
committed
correct 2&3 and 3 only.
1 parent 2ef6ede commit 946dc17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/scala3-book/taste-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ val b = List(1, 2, 3).map(_ * 2) // List(2,4,6)
3434
Those examples are also equivalent to the following code, which uses a `double` method instead of a lambda:
3535

3636

37-
{% tabs function_2 class=tabs-scala-version %}
37+
{% tabs function_2 %}
3838
{% tab 'Scala 2 and 3' for=function_2 %}
3939
```scala
4040
def double(i: Int): Int = i * 2
@@ -57,7 +57,7 @@ As a result, it’s also common to chain them together in a “fluent” style t
5757
For instance, this example shows how to filter a collection twice, and then multiply each element in the remaining collection:
5858

5959

60-
{% tabs function_3 class=tabs-scala-version %}
60+
{% tabs function_3 %}
6161
{% tab 'Scala 2 and 3' for=function_3 %}
6262
```scala
6363
// a sample list

0 commit comments

Comments
 (0)