From 2ad2bb3ce78e24deefeb2e68aef18e66f7cd69a4 Mon Sep 17 00:00:00 2001 From: Thomas Cleary Date: Sun, 25 Sep 2022 20:24:17 +0800 Subject: [PATCH] Fix typo (#5111) --- beta/src/content/learn/updating-arrays-in-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/content/learn/updating-arrays-in-state.md b/beta/src/content/learn/updating-arrays-in-state.md index 77a0ebbf..e5a64ab3 100644 --- a/beta/src/content/learn/updating-arrays-in-state.md +++ b/beta/src/content/learn/updating-arrays-in-state.md @@ -214,7 +214,7 @@ Here, `artists.filter(a => a.id !== artist.id)` means "create an array that cons If you want to change some or all items of the array, you can use `map()` to create a **new** array. The function you will pass to `map` can decide what to do with each item, based on its data or its index (or both). -In this example, an array holds coordinates of two circles and a square. When you press the button, it moves only the circles down by 100 pixels. It does this by producing a new array of data using `map()`: +In this example, an array holds coordinates of two circles and a square. When you press the button, it moves only the circles down by 50 pixels. It does this by producing a new array of data using `map()`: