From 1b963971858bc3e8ce08cfd7d7c4546155f144a7 Mon Sep 17 00:00:00 2001 From: Hannes Date: Thu, 3 Nov 2016 11:51:15 +0100 Subject: [PATCH] Small textual change / Grammar The comment "//An explicit call the x function" is grammatically incomplete. --- src/main/scala/stdlib/ByNameParameter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/ByNameParameter.scala b/src/main/scala/stdlib/ByNameParameter.scala index 2291e84d..cb60ee99 100644 --- a/src/main/scala/stdlib/ByNameParameter.scala +++ b/src/main/scala/stdlib/ByNameParameter.scala @@ -11,7 +11,7 @@ object ByNameParameter extends FlatSpec with Matchers with org.scalaexercises.de def takesUnitByNameParameter(res0: Either[Throwable, Int]) { def calc(x: () ⇒ Int): Either[Throwable, Int] = { try { - Right(x()) //An explicit call the x function + Right(x()) //An explicit call of the x function } catch { case b: Throwable ⇒ Left(b) }