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 c18fe3bed322602feddb11c95777cf9465bcf307
14 changes: 7 additions & 7 deletions tutorials/tour/unified-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Here is an example that demonstrates that numbers, characters, boolean values, a

```tut
object UnifiedTypes extends App {
var list: List[Any] = List()

list = list :+ "This is a string"
list = list :+ 732
list = list :+ 'c'
list = list :+ true
list = list :+ (() => "This is an anonymous function returning a string")
val list: List[Any] = List(
"This is a string",
732,
'c',
true,
() => "This is an anonymous function returning a string"
)

list.foreach(element => println(element))
}
Expand Down