aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_walk.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_walk.go')
-rw-r--r--internal/game/cmd_walk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_walk.go b/internal/game/cmd_walk.go
index 80600af..101c0fe 100644
--- a/internal/game/cmd_walk.go
+++ b/internal/game/cmd_walk.go
@@ -53,7 +53,7 @@ func parseWalkDirections(input string) ([]string, error) {
num = 1
}
if i >= len(input) {
- return nil, fmt.Errorf("Unexpected end of directions.")
+ return nil, fmt.Errorf("unexpected end of directions")
}
ch := input[i]
i++
@@ -88,7 +88,7 @@ func parseWalkDirections(input string) ([]string, error) {
case 'd':
dir = string(world.Down)
default:
- return nil, fmt.Errorf("Unknown direction: %c", ch)
+ return nil, fmt.Errorf("unknown direction: %c", ch)
}
for j := 0; j < num; j++ {
dirs = append(dirs, dir)