Skip to content

Commit

Permalink
Preference.update: Correct function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalik committed Dec 14, 2024
1 parent 1a5ee93 commit 14d3d93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ public interface Preference<T> {

public suspend fun set(value: T)

public suspend fun update(function: T.() -> T)
public suspend fun update(function: (T) -> T)
}

0 comments on commit 14d3d93

Please sign in to comment.