mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
Merge pull request #810 from Sakuraine/patch-1
super(length, length) => super(length, width);
This commit is contained in:
+1
-1
@@ -975,7 +975,7 @@ class Rectangle {
|
||||
|
||||
class Square extends Rectangle {
|
||||
constructor(length) {
|
||||
super(length, length);
|
||||
super(length, width);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user