Skip to content

Commit e0ced78

Browse files
committed
Merge pull request #483 from SethTisue/small-tour-fix
fix a small mistake in one of the tour sections
2 parents 176254d + e401f8c commit e0ced78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tour/lower-type-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here is an example where this is useful:
2121
ListNode(elem, this)
2222
}
2323

24-
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:
24+
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:
2525

2626
case class ListNode[+T](h: T, t: ListNode[T]) { ... }
2727

0 commit comments

Comments
 (0)