From 569a6eaf94c141c0e50048ff2262664e3703b361 Mon Sep 17 00:00:00 2001 From: Martin HART Date: Tue, 20 Oct 2020 16:00:26 +0200 Subject: [PATCH] Change to_ to turn_ --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }