Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilkjeka committed Apr 15, 2015
1 parent 6c994cc commit 577863a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ must_turn(ElevatorNextFloor, down, OrderFloor, command) when OrderFloor > Elevat
must_turn(ElevatorNextFloor, up, OrderFloor, down) when OrderFloor > ElevatorNextFloor -> false;
must_turn(ElevatorNextFloor, up, OrderFloor, down) when OrderFloor =< ElevatorNextFloor -> true;
must_turn(ElevatorNextFloor, down, OrderFloor, up) when OrderFloor >= ElevatorNextFloor -> true;
must_turn(ElevatorNextFloor, down, OrderFloor, up) when OrderFloor < ElevatorNextFloor-> false;
must_turn(ElevatorNextFloor, down, OrderFloor, up) when OrderFloor < ElevatorNextFloor -> false.

% maybe make and move to "cost" module?
get_cost(ElevatorNextFloor, ElevatorDirection, OrderFloor, OrderDirection) -> %% should probably not be named "get" since it's not a getter
Expand Down

0 comments on commit 577863a

Please sign in to comment.