From 86362e12f6a3554820984f1b6c08f38f5b6759bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 20 Jun 2021 22:06:42 +0300 Subject: [PATCH] Update iterator readme --- iterator/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iterator/README.md b/iterator/README.md index e48402593..721b313f8 100644 --- a/iterator/README.md +++ b/iterator/README.md @@ -19,10 +19,10 @@ underlying representation. ## Explanation -Real world example +Real-world example > Treasure chest contains a set of magical items. There multiple types of items such as rings, -> potions and weapons. The items can be browsed by type using an iterator the treasure chest +> potions, and weapons. The items can be browsed by type using an iterator the treasure chest > provides. In plain words @@ -113,7 +113,7 @@ public interface Iterator { } ``` -In the following example we iterate through the ring type items found in the chest. +In the following example, we iterate through the ring-type items found in the chest. ```java var itemIterator = TREASURE_CHEST.iterator(ItemType.RING); @@ -145,7 +145,7 @@ Use the Iterator pattern * [How to Use Iterator?](http://www.tutorialspoint.com/java/java_using_iterator.htm) -## Real world examples +## Known uses * [java.util.Iterator](http://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html) * [java.util.Enumeration](http://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html)