From e5bc1b2d1bfcf5f36bd4f0d567e4ec8e0fb22e85 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 5 Mar 2018 17:43:23 +0100 Subject: Fixes issues I expected Dialyzer to show me. --- src/struct/location.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/struct/location.erl') 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}). -- cgit v1.2.3-70-g09d2