From 41f73dd428a96cf6203f5b3393f93f52b47117dc Mon Sep 17 00:00:00 2001 From: Manish Bansal Date: Tue, 7 Jul 2020 20:30:39 +0530 Subject: [PATCH] Fixed typo --- _tour/abstract-type-members.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/abstract-type-members.md b/_tour/abstract-type-members.md index 34eaa380bb..f3704aa048 100644 --- a/_tour/abstract-type-members.md +++ b/_tour/abstract-type-members.md @@ -50,7 +50,7 @@ val buf = newIntSeqBuf(7, 8) println("length = " + buf.length) println("content = " + buf.element) ``` -Here the factory `newIntSeqBuf` uses an anonymous class implementation of `IntSeqBuf` (i.e. `new IntSeqBuffer`) to set the abstract type `T` to the concrete type `List[Int]`. +Here the factory `newIntSeqBuf` uses an anonymous class implementation of `IntSeqBuffer` (i.e. `new IntSeqBuffer`) to set the abstract type `T` to the concrete type `List[Int]`. It is also possible to turn abstract type members into type parameters of classes and vice versa. Here is a version of the code above which only uses type parameters: