Skip to content

Commit bbc2a9d

Browse files
committed
Grammar fixes for observer
1 parent 2b7cc41 commit bbc2a9d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

observer/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ dependents are notified and updated automatically.
2121

2222
## Explanation
2323

24-
Real world example
24+
Real-world example
2525

26-
> In a land far away lives the races of hobbits and orcs. Both of them are mostly outdoors so they
27-
> closely follow the changes in weather. One could say that they are constantly observing the
26+
> In a land far away live the races of hobbits and orcs. Both of them are mostly outdoors so they
27+
> closely follow the weather changes. One could say that they are constantly observing the
2828
> weather.
2929
3030
In plain words
@@ -152,11 +152,7 @@ be changed.
152152
* When an object should be able to notify other objects without making assumptions about who these
153153
objects are. In other words, you don't want these objects tightly coupled.
154154

155-
## Typical Use Case
156-
157-
* Changing in one object leads to a change in other objects.
158-
159-
## Real world examples
155+
## Known uses
160156

161157
* [java.util.Observer](http://docs.oracle.com/javase/8/docs/api/java/util/Observer.html)
162158
* [java.util.EventListener](http://docs.oracle.com/javase/8/docs/api/java/util/EventListener.html)

observer/src/main/java/com/iluwatar/observer/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void main(String[] args) {
5858
weather.timePasses();
5959
weather.timePasses();
6060

61-
// Generic observer inspired by Java Generics and Collection by Naftalin & Wadler
61+
// Generic observer inspired by Java Generics and Collections by Naftalin & Wadler
6262
LOGGER.info("--Running generic version--");
6363
var genericWeather = new GWeather();
6464
genericWeather.addObserver(new GOrcs());

0 commit comments

Comments
 (0)