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