From 4d47cbd4e9176c8576e3114b1766d0bc30050a52 Mon Sep 17 00:00:00 2001 From: codedhan Date: Fri, 12 Mar 2021 00:22:20 -0500 Subject: [PATCH] Update kotlin.md (#1629) * Update kotlin.md minor addition * Update kotlin.md Co-authored-by: Rico Sta. Cruz --- kotlin.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kotlin.md b/kotlin.md index 68402027b..36638449a 100644 --- a/kotlin.md +++ b/kotlin.md @@ -26,6 +26,7 @@ val inferredString = "Adam" val name = "Adam" val greeting = "Hello, " + name val greetingTemplate = "Hello, $name" +val interpolated = "Hello, ${name.toUpperCase()}" ``` ### Numbers @@ -399,4 +400,4 @@ References * [Collections Documentation](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/index.html) _(kotlinlang.org)_ * [Functions Documentation](https://kotlinlang.org/docs/reference/functions.html) _(kotlinlang.org)_ * [Classes Documentation](https://kotlinlang.org/docs/reference/classes.html) _(kotlinlang.org)_ -* [Destructuring Declarations](https://kotlinlang.org/docs/reference/multi-declarations.html) _(kotlinlang.org)_ \ No newline at end of file +* [Destructuring Declarations](https://kotlinlang.org/docs/reference/multi-declarations.html) _(kotlinlang.org)_