'constructor' typo in migration from javascript tutorial. PR554
This commit is contained in:
parent
a08e00e9e7
commit
bfeff2ca77
@ -392,7 +392,7 @@ foo!.length; // okay - 'foo!' just has type 'string[]'
|
||||
|
||||
```ts
|
||||
class Point {
|
||||
constuctor(public x, public y) {}
|
||||
constructor(public x, public y) {}
|
||||
getDistance(p: Point) {
|
||||
let dx = p.x - this.x;
|
||||
let dy = p.y - this.y;
|
||||
|
Loading…
Reference in New Issue
Block a user