From aa98397440baa06743cead6a2955e98b75ee4515 Mon Sep 17 00:00:00 2001 From: Josh <44098505+josh-fnbtech@users.noreply.github.com> Date: Tue, 10 Jan 2023 02:38:47 -0600 Subject: [PATCH] [docs] fix typo (#8180) --- .../02-reactivity/04-updating-arrays-and-objects/text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md index a298d1d1bb69..bc8330206e3e 100644 --- a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md +++ b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md @@ -23,7 +23,7 @@ function addNumber() { } ``` -The same rule applies to array methods such as `pop`, `shift`, and `splice` and to objects methods such as `Map.set`, `Set.add`, etc. +The same rule applies to array methods such as `pop`, `shift`, and `splice` and to object methods such as `Map.set`, `Set.add`, etc. Assignments to *properties* of arrays and objects — e.g. `obj.foo += 1` or `array[i] = x` — work the same way as assignments to the values themselves. @@ -51,4 +51,4 @@ quox(obj); ...won't trigger reactivity on `obj.foo.bar`, unless you follow it up with `obj = obj`. -A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment. \ No newline at end of file +A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.