瀏覽代碼

Update README.md

Git-Leon 7 年之前
父節點
當前提交
9f1293ca02
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      README.md

+ 1
- 1
README.md 查看文件

@@ -151,7 +151,7 @@
151 151
 * To remedy this issue, we can _generify_ the `People` class.
152 152
 
153 153
 ### Part 10.1 - Modify `People` class
154
-* [Parameterize](https://stackoverflow.com/questions/12551674/what-is-meant-by-parameterized-type) the `People` signature to enfore that it is a container for objects of type `E` such that `E` is a subclass of `Person`.
154
+* [Parameterize](https://stackoverflow.com/questions/12551674/what-is-meant-by-parameterized-type) the `People` signature to enforce that it is a container for objects of type `E` such that `E` is a subclass of `Person`.
155 155
 * Modify `people` field to enforce that is a container of objects of type `E`.
156 156
 * Modify the `add` method to ensure that it handles object of type `E`.
157 157
 * Modify the `getArray` method to ensure that it returns an object of type `E[]`.