Change to_ to turn_

This commit is contained in:
Martin HART 2020-10-20 16:00:26 +02:00
parent 2dba5a9721
commit 569a6eaf94
1 changed files with 4 additions and 4 deletions

View File

@ -70,19 +70,19 @@ impl Robot {
} }
} }
/// Apply North orientation to the robot. /// Apply North orientation to the robot.
fn to_north(&mut self) { fn turn_north(&mut self) {
self.o = Orientation::N self.o = Orientation::N
} }
/// Apply South orientation to the robot. /// Apply South orientation to the robot.
fn to_south(&mut self) { fn turn_south(&mut self) {
self.o = Orientation::S self.o = Orientation::S
} }
/// Apply East orientation to the robot. /// Apply East orientation to the robot.
fn to_east(&mut self) { fn turn_east(&mut self) {
self.o = Orientation::E self.o = Orientation::E
} }
/// Apply West orientation to the robot. /// Apply West orientation to the robot.
fn to_west(&mut self) { fn turn_west(&mut self) {
self.o = Orientation::W self.o = Orientation::W
} }
} }