Update 设计模式.md
fix typo starWatching to startWatching
This commit is contained in:
parent
0dbac12dda
commit
c6f81cfba0
|
@ -2836,8 +2836,8 @@ public class SubSystem {
|
|||
System.out.println("setCD( " + cd + " )");
|
||||
}
|
||||
|
||||
public void starWatching(){
|
||||
System.out.println("starWatching()");
|
||||
public void startWatching(){
|
||||
System.out.println("startWatching()");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -2849,7 +2849,7 @@ public class Facade {
|
|||
public void watchMovie() {
|
||||
subSystem.turnOnTV();
|
||||
subSystem.setCD("a movie");
|
||||
subSystem.starWatching();
|
||||
subSystem.startWatching();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user