From 5534396a0251addb32303ebaec3437518cd1d215 Mon Sep 17 00:00:00 2001 From: Hemal Varambhia Date: Wed, 25 Oct 2023 20:05:49 +0100 Subject: [PATCH] Forgot to change some old code. --- lib/mars_rover.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mars_rover.rb b/lib/mars_rover.rb index 486552fc..c2b313ee 100644 --- a/lib/mars_rover.rb +++ b/lib/mars_rover.rb @@ -40,7 +40,7 @@ def direction end def inspect - "a Mars Rover located at #{@current_position} facing #{@direction}" + "a Mars Rover located at #{@current_location.coordinates} facing #{@current_location.direction}" end private