Skip to content

Commit

Permalink
docs: Fix Clock time getter in complex objects docs (#677)
Browse files Browse the repository at this point in the history
The time getter is trying to accessing `this.minutes`, but it's missing `this.`!
```ts
get time() {
	return `${this.hour}:${minute}`
}
```
  • Loading branch information
ivoelbert committed Oct 20, 2020
1 parent 02265f9 commit c9e7116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/complex-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Clock {
}

get time() {
return `${this.hour}:${minute}`
return `${this.hour}:${this.minute}`
}

tick() {
Expand Down

0 comments on commit c9e7116

Please sign in to comment.