Skip to content

Commit 97ef862

Browse files
authored
Merge pull request #2462 from AmosChenYQ/amoschen-classes-correct
modify alternative method in comment of mixins' code example
2 parents 7bd55a4 + 13a6a75 commit 97ef862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/07-mixins/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let sayMixin = {
6969
};
7070

7171
let sayHiMixin = {
72-
__proto__: sayMixin, // (or we could use Object.create to set the prototype here)
72+
__proto__: sayMixin, // (or we could use Object.setPrototypeOf to set the prototype here)
7373

7474
sayHi() {
7575
*!*

0 commit comments

Comments
 (0)