From 89da875d390ccf1308749a36d0cefa4665250f29 Mon Sep 17 00:00:00 2001 From: Samed Bektas Date: Fri, 2 May 2014 10:51:29 +0200 Subject: [PATCH] Pathwalker --- src/Pathwalker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pathwalker.cs b/src/Pathwalker.cs index 36b1e98..da694ca 100644 --- a/src/Pathwalker.cs +++ b/src/Pathwalker.cs @@ -26,7 +26,7 @@ namespace WorldOfPeacecraft Coordinate dst = Coords.First.Value; int distance = Math.Abs (src.X - dst.X) + Math.Abs (src.Y - dst.Y); if (distance > 1) { - throw new PathwalkerException ("The distance between (" + src.X + "|" + src.Y + ") and (" + dst.X + "|" + dst.Y + ") is grater than 1"); + throw new PathwalkerException ("The distance between (" + src.X + "|" + src.Y + ") and (" + dst.X + "|" + dst.Y + ") is greater than 1"); } string command; if (src.X > dst.X) {