Skip to content

Commit 980bc25

Browse files
author
Rafa Paradela
committed
Merge pull request scala-exercises#40 from stefaneng/patch-1
Change Int type to underscore
2 parents 97bd0b8 + d52e00d commit 980bc25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/json/higherorderfunctions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"preparagraph": "`isInstanceOf` is the same as `instanceof` in java, but in this case the parameter types can be *blanked out* using existential types with is a single underline, since parameter type are unknown at runtime.",
65-
"code": "def addWithSyntaxSugar(x: Int) = (y:Int) => x + y\n\naddWithSyntaxSugar(1).isInstanceOf[Function1[Int, Int]] should be(__)",
65+
"code": "def addWithSyntaxSugar(x: Int) = (y:Int) => x + y\n\naddWithSyntaxSugar(1).isInstanceOf[Function1[_, _]] should be(__)",
6666
"solutions": [
6767
"true"
6868
],
@@ -98,4 +98,4 @@
9898
"postparagraph": ""
9999
}
100100
]
101-
}
101+
}

0 commit comments

Comments
 (0)