OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Fri, 12 Mar 2021 14:55:05 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Fri, 12 Mar 2021 14:55:05 +0000 (23:55 +0900)
kotlin.md

index 6840202..3663844 100644 (file)
--- 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)_