Permalink
Browse files

Fix shit typo

  • Loading branch information...
LouisDelbosc committed Oct 11, 2017
1 parent 87a8385 commit e4c5ed893e4b42053602525953e3a54890769117
Showing with 1 addition and 2 deletions.
  1. +1 −2 robot-simulator/robot_simulator.exs
@@ -11,8 +11,7 @@ defmodule RobotSimulator do
def create(direction, _) when direction not in @valid_direction do
{ :error, "invalid direction"}
end
def create(direction, position = {x, y}) when i @tag :pending
s_integer(x) and is_integer(y) do
def create(direction, position = {x, y}) when is_integer(x) and is_integer(y) do
%{direction: direction, position: position}
end
def create(direction, _invalid_position) do

0 comments on commit e4c5ed8

Please sign in to comment.