Skip to content

Commit

Permalink
docs(#9): update code sample in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
LVMVRQUXL committed Jan 3, 2023
1 parent ae112ab commit 95b0c7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions changelog.md
Expand Up @@ -72,8 +72,9 @@ elements.toList() // after
[#9](https://github.com/kotools/types/issues/9)).

```kotlin
notEmptySetOf(1, 2, 3) as Set<Int> // before
notEmptySetOf(1, 2, 3).toSet() // after
val elements: NotEmptySet<Int> = notEmptySetOf(1, 2, 3)
elements as Set<Int> // before
elements.toSet() // after
```

- Remove inheritance between the `NotEmptyMap` and the `Map` types (issue
Expand Down

0 comments on commit 95b0c7a

Please sign in to comment.