Skip to content

Commit 9651d75

Browse files
committed
Delete unnecessary for attribute
1 parent 60a87c4 commit 9651d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/scala3-book/fun-write-method-returns-function.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Now all you need to do is (a) return `englishGreeting` if the `desiredLanguage`
190190
One way to do that is with a `match` expression:
191191

192192
{% tabs fun-write-method-returns-function-14 class=tabs-scala-version %}
193-
{% tab 'Scala 2' for=fun-write-method-returns-function-14 %}
193+
{% tab 'Scala 2' %}
194194
```scala
195195
def createGreetingFunction(desiredLanguage: String): String => Unit = {
196196
val englishGreeting = (name: String) => println(s"Hello, $name")
@@ -202,7 +202,7 @@ def createGreetingFunction(desiredLanguage: String): String => Unit = {
202202
}
203203
```
204204
{% endtab %}
205-
{% tab 'Scala 3' for=fun-write-method-returns-function-14 %}
205+
{% tab 'Scala 3' %}
206206
```scala
207207
def createGreetingFunction(desiredLanguage: String): String => Unit =
208208
val englishGreeting = (name: String) => println(s"Hello, $name")

0 commit comments

Comments
 (0)