Skip to content

Commit 54a114d

Browse files
fix: make examples runnable
1 parent 99d50b3 commit 54a114d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/06_productivity_boosters/01_namedArguments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
As with most other programming languages (Java, C++, etc.), Kotlin supports passing arguments to methods and constructors according to the order they are defined.
44
Kotlin also supports [named arguments](https://kotlinlang.org/docs/reference/functions.html#named-arguments) to allow clearer invocations and avoid mistakes with the order of arguments. Such mistakes are hard to find because they are not detected by the compiler, for example, when two sequential arguments have the same type.
5+
56
<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">
67

78
```kotlin

examples/06_productivity_boosters/02_String Templates.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# String Templates
22

33
[String templates](https://kotlinlang.org/docs/reference/basic-types.html#string-templates) allow you to include variable references and expressions into strings. When the value of a string is requested (for example, by `println`), all references and expressions are substituted with actual values.
4+
45
<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">
56

67
```kotlin

0 commit comments

Comments
 (0)