summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBharat Reddy <me@bharatreddy.com>2017-07-07 11:26:29 +0100
committerBharat Reddy <me@bharatreddy.com>2017-07-07 11:26:29 +0100
commit6350beb6e6549d5a1df51f8068e3dcf461758cff (patch)
tree0d113dfd4cfbfcd6a3d7900dbd33c19f5d0ec84b
parentb67ac8da074c3d52451c1bff6bfe641cb3219257 (diff)
Added print output for template string command
-rw-r--r--kotlin.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/kotlin.html.markdown b/kotlin.html.markdown
index ca11ee3c..0c787d7e 100644
--- a/kotlin.html.markdown
+++ b/kotlin.html.markdown
@@ -65,7 +65,7 @@ fun helloWorld(val name : String) {
A template expression starts with a dollar sign ($).
*/
val fooTemplateString = "$fooString has ${fooString.length} characters"
- println(fooTemplateString)
+ println(fooTemplateString) // => My String Is Here! has 18 characters
/*
For a variable to hold null it must be explicitly specified as nullable.