From c3286cc8c5de601b1cb1790130c2ed1a52551507 Mon Sep 17 00:00:00 2001 From: Erik van Zijst Date: Wed, 27 Nov 2019 23:42:35 -0800 Subject: [PATCH] Typo: take -> takes Fixed a minor typo. --- _tour/upper-type-bounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/upper-type-bounds.md b/_tour/upper-type-bounds.md index 0e2c37ebf1..5fb24e99d9 100644 --- a/_tour/upper-type-bounds.md +++ b/_tour/upper-type-bounds.md @@ -44,7 +44,7 @@ val catContainer = new PetContainer[Cat](new Cat) // this would not compile val lionContainer = new PetContainer[Lion](new Lion) ``` -The `class PetContainer` take a type parameter `P` which must be a subtype of `Pet`. `Dog` and `Cat` are subtypes of `Pet` so we can create a new `PetContainer[Dog]` and `PetContainer[Cat]`. However, if we tried to create a `PetContainer[Lion]`, we would get the following Error: +The `class PetContainer` takes a type parameter `P` which must be a subtype of `Pet`. `Dog` and `Cat` are subtypes of `Pet` so we can create a new `PetContainer[Dog]` and `PetContainer[Cat]`. However, if we tried to create a `PetContainer[Lion]`, we would get the following Error: `type arguments [Lion] do not conform to class PetContainer's type parameter bounds [P <: Pet]`