summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-03-05 17:43:23 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-03-05 17:43:23 +0100 |
commit | e5bc1b2d1bfcf5f36bd4f0d567e4ec8e0fb22e85 (patch) | |
tree | e7637ad94f05b7484baa52f3a333af124c6b293a /src/struct/location.erl | |
parent | 9b73f3efa534fa4dfb8ff832550c1914342ddbb9 (diff) |
Fixes issues I expected Dialyzer to show me.
Diffstat (limited to 'src/struct/location.erl')
-rw-r--r-- | src/struct/location.erl | 2 |
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}). |