summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/struct/location.erl')
-rw-r--r--src/struct/location.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/struct/location.erl b/src/struct/location.erl
index 462dc46..0d5367d 100644
--- a/src/struct/location.erl
+++ b/src/struct/location.erl
@@ -55,5 +55,5 @@ dist ({OX, OY}, {DX, DY}) ->
-spec encode (type()) -> list(non_neg_integer()).
encode ({X, Y}) -> [X, Y].
--spec decode (list(non_neg_integer)) -> type().
+-spec decode (list(non_neg_integer())) -> type().
decode ([X, Y]) when (is_integer(X) and is_integer(Y)) -> validate({X, Y}).