Skip to content

Commit aa98397

Browse files
authored
[docs] fix typo (#8180)
1 parent be38cec commit aa98397

File tree

1 file changed

+2
-2
lines changed
  • site/content/tutorial/02-reactivity/04-updating-arrays-and-objects

1 file changed

+2
-2
lines changed

site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function addNumber() {
2323
}
2424
```
2525

26-
The same rule applies to array methods such as `pop`, `shift`, and `splice` and to objects methods such as `Map.set`, `Set.add`, etc.
26+
The same rule applies to array methods such as `pop`, `shift`, and `splice` and to object methods such as `Map.set`, `Set.add`, etc.
2727

2828
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.
2929

@@ -51,4 +51,4 @@ quox(obj);
5151

5252
...won't trigger reactivity on `obj.foo.bar`, unless you follow it up with `obj = obj`.
5353

54-
A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.
54+
A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.

0 commit comments

Comments
 (0)