mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-23 06:03:07 +03:00
Merge pull request #2785 from reddyalready/Kotlin-templ-str-print-output
[kotlin/en] Added print output for template string command
This commit is contained in:
commit
b903cac07d
@ -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