docs(class): fix private property

This commit is contained in:
ruanyf
2020-09-17 14:18:50 +08:00
parent 746a9188b6
commit 6ff7cb8a2f
+1 -1
View File
@@ -850,7 +850,7 @@ class Foo {
this.#b = b;
}
#sum() {
return #a + #b;
return this.#a + this.#b;
}
printSum() {
console.log(this.#sum());