Skip to content

Commit

Permalink
Fix Option.tap deprecation message. (#3096)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolpl authored Jul 14, 2023
1 parent dd6a062 commit a0cf24b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public sealed class Option<out A> {
* <!--- KNIT example-option-22.kt -->
*/
@Deprecated(
"tap is being renamed to onNone to be more consistent with the Kotlin Standard Library naming",
"tap is being renamed to onSome to be more consistent with the Kotlin Standard Library naming",
ReplaceWith("onSome(f)")
)
public inline fun tap(f: (A) -> Unit): Option<A> {
Expand Down

0 comments on commit a0cf24b

Please sign in to comment.