Skip to content

Commit 86362e1

Browse files
committed
Update iterator readme
1 parent 1f68339 commit 86362e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

iterator/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ underlying representation.
1919

2020
## Explanation
2121

22-
Real world example
22+
Real-world example
2323

2424
> Treasure chest contains a set of magical items. There multiple types of items such as rings,
25-
> potions and weapons. The items can be browsed by type using an iterator the treasure chest
25+
> potions, and weapons. The items can be browsed by type using an iterator the treasure chest
2626
> provides.
2727
2828
In plain words
@@ -113,7 +113,7 @@ public interface Iterator<T> {
113113
}
114114
```
115115

116-
In the following example we iterate through the ring type items found in the chest.
116+
In the following example, we iterate through the ring-type items found in the chest.
117117

118118
```java
119119
var itemIterator = TREASURE_CHEST.iterator(ItemType.RING);
@@ -145,7 +145,7 @@ Use the Iterator pattern
145145

146146
* [How to Use Iterator?](http://www.tutorialspoint.com/java/java_using_iterator.htm)
147147

148-
## Real world examples
148+
## Known uses
149149

150150
* [java.util.Iterator](http://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html)
151151
* [java.util.Enumeration](http://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html)

0 commit comments

Comments
 (0)