From e78577b2eb6e29cc2ef53ab8c60a97d08abbcf29 Mon Sep 17 00:00:00 2001 From: Kamesh Kotwani <36355951+kameshkotwani@users.noreply.github.com> Date: Mon, 3 Oct 2022 00:36:41 +0530 Subject: [PATCH] removed wrong variable(languages) from result The result of code section `val(num,str,person) = t` will give out only num,str and person. There is no `languages` val in Person class as well as the tuple, so removed it to prevent confusion. --- _overviews/scala3-book/taste-collections.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_overviews/scala3-book/taste-collections.md b/_overviews/scala3-book/taste-collections.md index 84fb394a64..477d59ad68 100644 --- a/_overviews/scala3-book/taste-collections.md +++ b/_overviews/scala3-book/taste-collections.md @@ -103,8 +103,7 @@ You can also use this _extractor_ approach to assign the tuple fields to variabl val (num, str, person) = t // result: -// val languages: [zh-cn] -num: Int = 11 +// val num: Int = 11 // val str: String = eleven // val person: Person = Person(Eleven) ```