Skip to content

Commit

Permalink
Update ArrayMap.java
Browse files Browse the repository at this point in the history
  • Loading branch information
joshHug authored Nov 11, 2017
1 parent b58628b commit c98b475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax1/live/Map61B/ArrayMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int size() {

public List<K> keys() {
List<K> keylist = new ArrayList<K>();
for (int i = 0; i < keys.length; i += 1) {
for (int i = 0; i < size; i += 1) { // thanks to Josh Zhang at UW for catching a bug on this line
keylist.add(keys[i]);
}
return keylist;
Expand Down

0 comments on commit c98b475

Please sign in to comment.