A misprint in a code comment. PR631

This commit is contained in:
zhongsp 2017-08-17 09:07:16 +08:00
parent 7b840db20c
commit 52649aa8d4

View File

@ -291,7 +291,7 @@ class Dog extends Animal {
breed: string;
}
// Error: indexing with a 'string' will sometimes get you a Dog!
// 错误:使用'string'索引有时会得到Animal!
interface NotOkay {
[x: number]: Animal;
[x: string]: Dog;