From 1475495cecbb9e989a2525cf8ef80987f62af399 Mon Sep 17 00:00:00 2001 From: Parambir Singh Date: Thu, 11 Jul 2019 16:27:27 -0700 Subject: [PATCH] Update type-inference.md Remove semicolon --- _tour/type-inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/type-inference.md b/_tour/type-inference.md index d949fc4f4b..5321d35b05 100644 --- a/_tour/type-inference.md +++ b/_tour/type-inference.md @@ -36,7 +36,7 @@ It is also not compulsory to specify type parameters when [polymorphic methods]( Here are two examples: ```tut -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) val p = MyPair(1, "scala") // type: MyPair[Int, String] def id[T](x: T) = x