Skip to content

Commit abc7cd3

Browse files
authored
Merge pull request JustinSDK#38 from SillyHP/patch-2
Update CH12.md
2 parents cbea044 + bc7e4e1 commit abc7cd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/CH12.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ public class GenericFoo2<T1, T2> {
198198

199199
您可以如下使用 GenericFoo2 類別,分別以 Integer 與 Boolean 設定 T1 與 T2 的真正型態:
200200

201-
GenericFoo<Integer, Boolean> foo =
202-
new GenericFoo<Integer, Boolean>();
201+
GenericFoo2<Integer, Boolean> foo =
202+
new GenericFoo2<Integer, Boolean>();
203203
204204
泛型可以用於宣告陣列型態,範例 12.7 是個簡單示範。
205205

0 commit comments

Comments
 (0)