Fix a typo
This commit is contained in:
parent
3b48deeffa
commit
6ee0d97997
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ tree.sayHi(); // I'm an animal (?!?)
|
|||
*/!*
|
||||
```
|
||||
|
||||
A call to `tree.sayHi()` shows "I'm an animal". Definitevely wrong.
|
||||
A call to `tree.sayHi()` shows "I'm an animal". Definitely wrong.
|
||||
|
||||
The reason is simple:
|
||||
- In the line `(*)`, the method `tree.sayHi` was copied from `rabbit`. Maybe we just wanted to avoid code duplication?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue