summaryrefslogtreecommitdiffhomepage
path: root/scala.html.markdown
diff options
context:
space:
mode:
authorTodd M. Guerra <toddguerra@gmail.com>2015-10-09 11:14:29 -0400
committerTodd M. Guerra <toddguerra@gmail.com>2015-10-09 11:14:29 -0400
commitfc3c56ee938dbb7231127465b0e9ab5fa7f2da40 (patch)
tree444181fbb299567b566a038ab4241e31ca519a97 /scala.html.markdown
parent6d3f52b7f01409818853de6148abf1d8fe57fab0 (diff)
parentdcd9093d6467166a2946008c55f5e0582a15e20c (diff)
Merge remote-tracking branch 'adambard/master'
Conflicts: java.html.markdown
Diffstat (limited to 'scala.html.markdown')
-rw-r--r--scala.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index c482752d..7189be10 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -43,9 +43,13 @@ Scala - the scalable language
// Printing, and forcing a new line on the next print
println("Hello world!")
println(10)
+// Hello world!
+// 10
// Printing, without forcing a new line on next print
print("Hello world")
+print(10)
+// Hello world!10
// Declaring values is done using either var or val.
// val declarations are immutable, whereas vars are mutable. Immutability is