Skip to content

Make unified-types.md more intuitive to new comers #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 9, 2017
Prev Previous commit
Next Next commit
Update unified-types.md
  • Loading branch information
shogowada authored Feb 1, 2017
commit 4f65cd358693c89b5823cca0987ef4ec4c53ca15
4 changes: 3 additions & 1 deletion tutorials/tour/unified-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ object UnifiedTypes extends App {

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.

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:
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.

In the end, the application outputs something like below:

```tut
a string
Expand Down