Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbull committed Mar 8, 2024
1 parent 83dce6f commit 2eadee9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public fun <V, E> Iterable<Result<V, E>>.filterErrors(): List<E> {
}

/**
* Appends the [values][Ok.value] of each element that is [Ok] the given [destination].
* Appends the [values][Ok.value] of each element that is [Ok] to the given [destination].
*/
public inline fun <V, E, C : MutableCollection<in V>> Iterable<Result<V, E>>.filterValuesTo(destination: C): C {
for (element in this) {
Expand All @@ -28,7 +28,7 @@ public inline fun <V, E, C : MutableCollection<in V>> Iterable<Result<V, E>>.fil
}

/**
* Appends the [values][Ok.value] of each element that is [Ok] the given [destination].
* Appends the [values][Ok.value] of each element that is [Ok] to the given [destination].
*/
public inline fun <V, E, C : MutableCollection<in E>> Iterable<Result<V, E>>.filterErrorsTo(destination: C): C {
for (element in this) {
Expand Down

0 comments on commit 2eadee9

Please sign in to comment.