Skip to content

Commit

Permalink
fix: line feed causes HTML rendering error view
Browse files Browse the repository at this point in the history
  • Loading branch information
condorheroblog committed Sep 1, 2022
1 parent eba1ada commit 5730890
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,7 @@ class Counter {
}
```

上面代码中,`#x`是一个私有属性,它的读写都通过`get #x()`和`set
#x()`操作另一个私有属性`#xValue`来完成。
上面代码中,`#x`是一个私有属性,它的读写都通过`get #x()``set #x()`操作另一个私有属性`#xValue`来完成。

私有属性不限于从`this`引用,只要是在类的内部,实例也可以引用私有属性。

Expand Down

0 comments on commit 5730890

Please sign in to comment.