Fix a typo

This commit is contained in:
Chao Zhang 2020-03-10 20:31:45 -04:00 committed by GitHub
parent 3b48deeffa
commit 6ee0d97997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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