From 0d34c306d363c735e2e3d3094b3f3985c4604a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Alejandro=20Mart=C3=ADn?= Date: Sat, 31 May 2025 13:34:16 +0100 Subject: [PATCH] Update 02-$state.md Fix what I think is probably a typo in the destructuring explanation --- documentation/docs/02-runes/02-$state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/docs/02-runes/02-$state.md b/documentation/docs/02-runes/02-$state.md index e19e68f6a8..f0f26c4ff2 100644 --- a/documentation/docs/02-runes/02-$state.md +++ b/documentation/docs/02-runes/02-$state.md @@ -59,8 +59,8 @@ let todos = [{ done: false, text: 'add more todos' }]; // ---cut--- let { done, text } = todos[0]; -// this will not affect the value of `done` -todos[0].done = !todos[0].done; +// this will not affect the value of `done` within the actual item in the array +done = !done; ``` ### Classes