Skip to content

Commit 68da0fb

Browse files
committedDec 21, 2023
docs(decorator): fixed #93
1 parent ef7d619 commit 68da0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/decorator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class C {
691691
}
692692
```
693693

694-
上面示例中,`accessor`修饰符等同于为属性`x`自动生成取值器和存值器,它们作用于私有属性`x`。也就是说,上面的代码等同于下面的代码。
694+
上面示例中,`accessor`修饰符等同于为公开属性`x`自动生成取值器和存值器,它们作用于私有属性`x`(注意,公开的`x`与私有的`x`不是同一个属性。)也就是说,上面的代码等同于下面的代码。
695695

696696
```typescript
697697
class C {

0 commit comments

Comments
 (0)
Please sign in to comment.