Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
Fix `mutate` typo in readme, replaced with `emit`.
  • Loading branch information
tunjid authored Feb 17, 2024
1 parent 11dbbd0 commit 0c94b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ class SnailStateHolder(
val state: StateFlow<Snail7State> = stateMutator.state

fun setSnailColor(index: Int) = stateMutator.launch {
mutate { copy(color = colors[index]) }
emit { copy(color = colors[index]) }
}

fun setProgress(progress: Float) = stateMutator.launch {
mutate { copy(progress = progress) }
emit { copy(progress = progress) }
}
}
```
Expand Down

0 comments on commit 0c94b69

Please sign in to comment.