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