Change to_ to turn_
This commit is contained in:
parent
2dba5a9721
commit
569a6eaf94
@ -70,19 +70,19 @@ impl Robot {
|
||||
}
|
||||
}
|
||||
/// Apply North orientation to the robot.
|
||||
fn to_north(&mut self) {
|
||||
fn turn_north(&mut self) {
|
||||
self.o = Orientation::N
|
||||
}
|
||||
/// Apply South orientation to the robot.
|
||||
fn to_south(&mut self) {
|
||||
fn turn_south(&mut self) {
|
||||
self.o = Orientation::S
|
||||
}
|
||||
/// Apply East orientation to the robot.
|
||||
fn to_east(&mut self) {
|
||||
fn turn_east(&mut self) {
|
||||
self.o = Orientation::E
|
||||
}
|
||||
/// Apply West orientation to the robot.
|
||||
fn to_west(&mut self) {
|
||||
fn turn_west(&mut self) {
|
||||
self.o = Orientation::W
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user