Skip to content

Commit 6c84c7a

Browse files
MSakamakidimadeveatii
authored andcommitted
[Do not add unneeded context ] to gets an error correction
1 parent a06fa32 commit 6c84c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ type Car = {
199199
}
200200

201201
function print(car: Car): void {
202-
console.log(`${this.carMake} ${this.carModel} (${this.carColor})`);
202+
console.log(`${car.carMake} ${car.carModel} (${car.carColor})`);
203203
}
204204
```
205205

@@ -213,7 +213,7 @@ type Car = {
213213
}
214214

215215
function print(car: Car): void {
216-
console.log(`${this.make} ${this.model} (${this.color})`);
216+
console.log(`${car.make} ${car.model} (${car.color})`);
217217
}
218218
```
219219

0 commit comments

Comments
 (0)