Skip to content

Commit 5575a61

Browse files
authored
Merge pull request #36 from arjun1438/patch-1
return type of triangle Area should be Double
2 parents 4b81c24 + c7cadbf commit 5575a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/DefinitionsAndEvaluation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ object DefinitionsAndEvaluation extends ScalaTutorialSection {
220220
def triangleArea(base: Double, height: Double): Double =
221221
base * height / res0
222222

223-
triangleArea(3, 4) shouldBe 6
223+
triangleArea(3, 4) shouldBe 6.0
224224
triangleArea(5, 6) shouldBe res1
225225
}
226226

0 commit comments

Comments
 (0)