Skip to content

Commit

Permalink
Fix typo in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
haukesomm committed Dec 20, 2024
1 parent 6e39474 commit e10bdd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/commonMain/kotlin/dev/fritz2/core/Inspector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SubInspector<P, T>(
}

/**
* Creates a new [Inspector] from a _nullable_ parent store that either contains the original value or a given
* Creates a new [Inspector] from a _nullable_ parent inspector that either contains the original value or a given
* [default] value if the original value was `null`.
*
* When updating the value of the resulting [Inspector] to this [default] value,
Expand All @@ -71,8 +71,8 @@ fun <D> Inspector<D?>.mapNull(default: D): Inspector<D> =
SubInspector(this, mapToNonNullLens(default))

/**
* Creates a new [Inspector] from a _non-nullable_ parent store that either contains the original value or `null` if its
* value matches the given [placeholder].
* Creates a new [Inspector] from a _non-nullable_ parent inspector that either contains the original value or `null` if
* its value matches the given [placeholder].
*
* When updating the value of the resulting [Store] to `null`, the [placeholder] is used instead.
* When the resulting [Inspector]'s value would be the [placeholder], `null` will be used instead.
Expand Down

0 comments on commit e10bdd0

Please sign in to comment.