Skip to content

Commit

Permalink
Vitaly review
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahhaggarty committed Jul 25, 2023
1 parent e9cde2a commit 93946ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/topics/tour/kotlin-tour-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ To create a mutable map ([`MutableMap`](https://kotlinlang.org/api/latest/jvm/st
use the [`mutableMapOf()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/mutable-map-of.html) function.
When creating maps, Kotlin can infer the type of items stored. To declare the type explicitly, add the types
of the keys and values within angled brackets `<>` after the map declaration. For example: `MutableMap<Int, Int>`
of the keys and values within angled brackets `<>` after the map declaration. For example: `MutableMap<String, Int>`.
The keys have type `String` and the values have type `Int`.
The easiest way to create maps is to use [`to`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/to.html) between each
key and its related value:
Expand Down

0 comments on commit 93946ab

Please sign in to comment.