Skip to content

Commit cdc6c8c

Browse files
authored
Remove double parenthesis in tuple exercise (#149)
1 parent 065eaaf commit cdc6c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/SyntacticConveniences.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object SyntacticConveniences extends ScalaTutorialSection {
6262
def tuples(res0: (Int, String)): Unit = {
6363
def pair(i: Int, s: String): (Int, String) = (i, s)
6464

65-
pair(42, "foo") shouldBe ((42, "foo"))
65+
pair(42, "foo") shouldBe (42, "foo")
6666
pair(0, "bar") shouldBe res0
6767
}
6868

0 commit comments

Comments
 (0)