aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorBrian Yao <chunlai0928@gmail.com>2022-02-21 15:55:34 +0800
committerGitHub <noreply@github.com>2022-02-21 15:55:34 +0800
commitf4150c66d40a60ff790155d850fa5e38660ffef7 (patch)
tree8acd95e296ff4f4d0dc6fb6607595d5a6b0c1c9d /files
parenta6b7d4ac6af051705fc7016a5dcd82321175999e (diff)
downloadtranslated-content-f4150c66d40a60ff790155d850fa5e38660ffef7.tar.gz
translated-content-f4150c66d40a60ff790155d850fa5e38660ffef7.tar.bz2
translated-content-f4150c66d40a60ff790155d850fa5e38660ffef7.zip
typo (#4206)
错别字
Diffstat (limited to 'files')
-rw-r--r--files/zh-cn/web/javascript/reference/classes/private_class_fields/index.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/classes/private_class_fields/index.md b/files/zh-cn/web/javascript/reference/classes/private_class_fields/index.md
index 34074a550a..b42b79c702 100644
--- a/files/zh-cn/web/javascript/reference/classes/private_class_fields/index.md
+++ b/files/zh-cn/web/javascript/reference/classes/private_class_fields/index.md
@@ -45,7 +45,7 @@ class ClassWithPrivateStaticMethod {
私有实例字段使用 `#名称`(发音为“哈希名称”)声明,这些名称以 `#` 开头。即 `#` 是名称本身的一部分,声明和访问时也需要加上。私有字段在类声明的构造方法中就可被访问。
-从作用域之外引用 `#` 名称、内部在位声明的情况下引用私有字段、或尝试使用 `delete` 移除声明的字段都会抛出语法错误。
+从作用域之外引用 `#` 名称、内部在未声明的情况下引用私有字段、或尝试使用 `delete` 移除声明的字段都会抛出语法错误。
```js example-bad
class ClassWithPrivateField {