Skip to content

Commit c3ae1f5

Browse files
committed
修复打错的代码
1 parent 1392056 commit c3ae1f5

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)