mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Added print output for template string command
This commit is contained in:
parent
b67ac8da07
commit
6350beb6e6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user