Skip to content

Commit 9f0f1c1

Browse files
committed
Fix typo in updating-arrays-in-state.md
Thanks to Alex H for reporting.
1 parent 8f05b84 commit 9f0f1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/updating-arrays-in-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ setMyList(myList.map(artwork => {
562562
// No changes
563563
return artwork;
564564
}
565-
});
565+
}));
566566
```
567567

568568
Here, `...` is the object spread syntax used to [create a copy of an object.](/learn/updating-objects-in-state#copying-objects-with-the-spread-syntax)

0 commit comments

Comments
 (0)