Skip to content

Commit 4f65cd3

Browse files
authored
Update unified-types.md
1 parent 47f1b41 commit 4f65cd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorials/tour/unified-types.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ object UnifiedTypes extends App {
4040

4141
The program declares an application `UnifiedTypes` in form of a top-level [singleton object](singleton-objects.html) extending [`App`](http://www.scala-lang.org/api/2.12.x/scala/App.html) so that the body of it acts as a main function.
4242

43-
The application defines a variable `list` of type `List[Any]`. The list is initialized with elements of various types, and they all are instance of `scala.Any`. In the end, the application outputs something like below:
43+
The application defines a variable `list` of type `List[Any]`. The list is initialized with elements of various types, but they all are instance of `scala.Any`, so you can add them to the list.
44+
45+
In the end, the application outputs something like below:
4446

4547
```tut
4648
a string

0 commit comments

Comments
 (0)