Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbc2a9d

Browse files
committed
Grammar fixes for observer
1 parent2b7cc41 commitbbc2a9d

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-
Realworld example
24+
Real-world example
2525

26-
>In a land far awaylives the races of hobbits and orcs. Both of them are mostly outdoors so they
27-
>closely follow thechanges inweather. One could say that they are constantly observing the
26+
>In a land far awaylive 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 andCollection by Naftalin & Wadler
61+
// Generic observer inspired by Java Generics andCollections by Naftalin & Wadler
6262
LOGGER.info("--Running generic version--");
6363
vargenericWeather =newGWeather();
6464
genericWeather.addObserver(newGOrcs());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp