diff --git a/src/main.rs b/src/main.rs index 7076b93..3652955 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 } }