'constructor' typo in migration from javascript tutorial. PR554

This commit is contained in:
zhongsp 2017-05-09 08:52:19 +08:00
parent a08e00e9e7
commit bfeff2ca77

View File

@ -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;