Skip to content

Commit 03afe1e

Browse files
authored
fix example code (lingcoder#403)
* 忽路->忽略 * 修复跳转链接错误 * fix Class.getInterface() -> Class.getInterfaces() * 否者 -> 否则 * 编译期 -> 编译器 ,原文"the compiler will only allow you to say that the superclass reference is “some class that is a superclass of FancyToy” a" * ierator -> iterator * nextint -> nextInt * fix 这句翻译第一反应没太看懂,结合原文和下面的例子优化了一下翻译 * fix ojb -> obj * fix example code
1 parent 8df2875 commit 03afe1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/20-Generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ import java.util.function.*;
15951595
import onjava.*;
15961596

15971597
public class FilledList<T> extends ArrayList<T> {
1598-
FilledList<Supplier<T> gen, int size) {
1598+
FilledList(Supplier<T> gen, int size) {
15991599
Suppliers.fill(this, gen, size);
16001600
}
16011601

0 commit comments

Comments
 (0)