Skip to content

Commit

Permalink
Merge pull request ruanyf#1135 from condorheroblog/patch-2
Browse files Browse the repository at this point in the history
fix: line feed causes HTML rendering error view
  • Loading branch information
ruanyf committed Sep 1, 2022
2 parents eba1ada + 5730890 commit 6288fc1
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 6288fc1

Please sign in to comment.