From e401f8cb8775dbbedf88d8efe99b181860b863f3 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Fri, 8 Jan 2016 15:53:51 -0500 Subject: [PATCH] fix a small mistake in one of the tour sections --- tutorials/tour/lower-type-bounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/tour/lower-type-bounds.md b/tutorials/tour/lower-type-bounds.md index 4dae5458a1..bb95471f69 100644 --- a/tutorials/tour/lower-type-bounds.md +++ b/tutorials/tour/lower-type-bounds.md @@ -21,7 +21,7 @@ Here is an example where this is useful: ListNode(elem, this) } -The program above implements a linked list with a prepend operation. Unfortunately, this type is invariant in the type parameter of class `ListNode`; i.e. type `ListNode[String]` is not a subtype of type `List[Object]`. With the help of [variance annotations](variances.html) we can express such a subtype semantics: +The program above implements a linked list with a prepend operation. Unfortunately, this type is invariant in the type parameter of class `ListNode`; i.e. `ListNode[String]` is not a subtype of `ListNode[Any]`. With the help of [variance annotations](variances.html) we can express such a subtype semantics: case class ListNode[+T](h: T, t: ListNode[T]) { ... }