We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f649432 commit 1b96397Copy full SHA for 1b96397
src/main/scala/stdlib/ByNameParameter.scala
@@ -11,7 +11,7 @@ object ByNameParameter extends FlatSpec with Matchers with org.scalaexercises.de
11
def takesUnitByNameParameter(res0: Either[Throwable, Int]) {
12
def calc(x: () ⇒ Int): Either[Throwable, Int] = {
13
try {
14
- Right(x()) //An explicit call the x function
+ Right(x()) //An explicit call of the x function
15
} catch {
16
case b: Throwable ⇒ Left(b)
17
}
0 commit comments