Skip to content

Commit e8bbe19

Browse files
authored
Merge pull request #941 from FormatFa/patch_word
修复打错的代码
2 parents 0af7f43 + c3ae1f5 commit e8bbe19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/notes/设计模式 - 观察者.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public interface Observer {
8282
public class StatisticsDisplay implements Observer {
8383

8484
public StatisticsDisplay(Subject weatherData) {
85-
weatherData.reisterObserver(this);
85+
weatherData.registerObserver(this);
8686
}
8787

8888
@Override

0 commit comments

Comments
 (0)