Skip to content

Commit 13a6a75

Browse files
committed
modify alternative method in comment of mixins' code example
1 parent 7bd55a4 commit 13a6a75

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)