summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2015-10-09 10:03:17 -0500
committerLevi Bostian <levi.bostian@gmail.com>2015-10-09 10:03:17 -0500
commit3caa2d84878643b159d61f68958ee0e07c8f18ac (patch)
tree774727f6ead733f89da545a5db5751a738366933
parent4bb350473f861bd1ce0fd2784cf56620cf088382 (diff)
parentf30200b31c60f082cf4f192245a4a2c058f76fa4 (diff)
Merge pull request #1375 from kalebdavis/patch-3
Add examples to show how printing works
-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