diff --git a/src/content/learn/updating-arrays-in-state.md b/src/content/learn/updating-arrays-in-state.md index 61e4f4e2d98..c9b03d99fc6 100644 --- a/src/content/learn/updating-arrays-in-state.md +++ b/src/content/learn/updating-arrays-in-state.md @@ -762,10 +762,10 @@ function ItemList({ artworks, onToggle }) { -Note how with Immer, **mutation like `artwork.seen = nextSeen` is now okay:** +Note how with Immer, a **mutation like `artwork.seen = nextSeen` is now okay:** ```js -updateMyTodos(draft => { +updateYourList(draft => { const artwork = draft.find(a => a.id === artworkId); artwork.seen = nextSeen; });