File tree
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -819,7 +819,7 @@ The first thing to consider is consistent APIs.
|
819 | 819 | ```javascript
|
820 | 820 | function travelToTexas(vehicle) {
|
821 | 821 | if (vehicle instanceof Bicycle) {
|
822 |
| -vehicle.peddle(this.currentLocation, new Location('texas')); |
| 822 | +vehicle.pedal(this.currentLocation, new Location('texas')); |
823 | 823 | } else if (vehicle instanceof Car) {
|
824 | 824 | vehicle.drive(this.currentLocation, new Location('texas'));
|
825 | 825 | }
|
|
You can’t perform that action at this time.
0 commit comments