[Do not add unneeded context ] to gets an error correction

This commit is contained in:
MSakamaki 2019-02-06 13:05:25 +09:00 committed by Dumitru
parent a06fa32967
commit 6c84c7a72b

View file

@ -199,7 +199,7 @@ type Car = {
}
function print(car: Car): void {
console.log(`${this.carMake} ${this.carModel} (${this.carColor})`);
console.log(`${car.carMake} ${car.carModel} (${car.carColor})`);
}
```
@ -213,7 +213,7 @@ type Car = {
}
function print(car: Car): void {
console.log(`${this.make} ${this.model} (${this.color})`);
console.log(`${car.make} ${car.model} (${car.color})`);
}
```