Update 设计模式.md

fix typo starWatching to startWatching
This commit is contained in:
Yue Yang 2018-12-27 16:42:02 -08:00 committed by GitHub
parent 0dbac12dda
commit c6f81cfba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
```