Skip to content

Commit e78577b

Browse files
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.
1 parent c97601f commit e78577b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_overviews/scala3-book/taste-collections.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ You can also use this _extractor_ approach to assign the tuple fields to variabl
103103
val (num, str, person) = t
104104

105105
// result:
106-
// val languages: [zh-cn]
107-
num: Int = 11
106+
// val num: Int = 11
108107
// val str: String = eleven
109108
// val person: Person = Person(Eleven)
110109
```

0 commit comments

Comments
 (0)