Skip to content

Commit 2cfbeb6

Browse files
skmtpshxcatliu
authored andcommitted
Update class.md
Es6中没有public
1 parent fc29eb4 commit 2cfbeb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced/class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ TypeScript 除了实现了所有 ES6 中的类的功能以外,还添加了一
3333

3434
```js
3535
class Animal {
36-
public name;
36+
name;
3737
constructor(name) {
3838
this.name = name;
3939
}

0 commit comments

Comments
 (0)