Skip to content

Commit

Permalink
Docs: corrected class extension example (#12176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuscm authored and aladdin-add committed Aug 28, 2019
1 parent 31e5428 commit 00d2c5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/no-useless-constructor.md
Expand Up @@ -8,7 +8,7 @@ class A {
}
}

class A extends B {
class B extends A {
constructor (value) {
super(value);
}
Expand All @@ -32,7 +32,7 @@ class A {
}
}

class A extends B {
class B extends A {
constructor (...args) {
super(...args);
}
Expand All @@ -52,13 +52,13 @@ class A {
}
}

class A extends B {
class B extends A {
constructor() {
super('foo');
}
}

class A extends B {
class B extends A {
constructor() {
super();
doSomething();
Expand Down

0 comments on commit 00d2c5b

Please sign in to comment.