Fix some confusing expression

This commit is contained in:
LeviDing 2020-07-12 18:45:38 +08:00 committed by GitHub
parent 445bda3980
commit 450612a09e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ For example, if according to our coding logic `user` object must be there, but `
So, if `user` happens to be undefined due to a mistake, we'll know about it and fix it. Otherwise, coding errors can be silenced where not appropriate, and become more difficult to debug. So, if `user` happens to be undefined due to a mistake, we'll know about it and fix it. Otherwise, coding errors can be silenced where not appropriate, and become more difficult to debug.
``` ```
````warn header="The variable before `?.` must exist" ````warn header="The variable before `?.` must be declared"
If there's no variable `user`, then `user?.anything` triggers an error: If there's no variable `user`, then `user?.anything` triggers an error:
```js run ```js run