diff --git a/readme.md b/readme.md index dab8d8a..0220d3b 100644 --- a/readme.md +++ b/readme.md @@ -118,11 +118,11 @@ class SnailStateHolder( val state: StateFlow = 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) } } } ```