File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ Now all you need to do is (a) return `englishGreeting` if the `desiredLanguage`
190
190
One way to do that is with a ` match ` expression:
191
191
192
192
{% 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' %}
194
194
``` scala
195
195
def createGreetingFunction (desiredLanguage : String ): String => Unit = {
196
196
val englishGreeting = (name : String ) => println(s " Hello, $name" )
@@ -202,7 +202,7 @@ def createGreetingFunction(desiredLanguage: String): String => Unit = {
202
202
}
203
203
```
204
204
{% endtab %}
205
- {% tab 'Scala 3' for=fun-write-method-returns-function-14 %}
205
+ {% tab 'Scala 3' %}
206
206
``` scala
207
207
def createGreetingFunction (desiredLanguage : String ): String => Unit =
208
208
val englishGreeting = (name : String ) => println(s " Hello, $name" )
You can’t perform that action at this time.
0 commit comments