Skip to content

Commit

Permalink
capitalize unit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjishults authored and elizarov committed Jul 21, 2021
1 parent c5e5dad commit 7fb7ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/context-receivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ An assortment of use cases is presented below.
* Working with mathematical abstractions
```kotlin
context(Monoid<T>)
fun <T> List<T>.sum(): T = fold(unit) { acc, e -> acc.combine(e) }
fun <T> List<T>.sum(): T = fold(Unit) { acc, e -> acc.combine(e) }
```

* Using structured concurrency
Expand Down

0 comments on commit 7fb7ff7

Please sign in to comment.