We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7d77f1 commit d1e5babCopy full SHA for d1e5bab
src/math/point.erl
@@ -6,7 +6,8 @@
6
-type point() :: {number(), number()}.
7
-export_type([point/0]).
8
9
--spec is_point(P :: point()) -> boolean().
+-spec
10
+is_point(P :: point()) -> boolean().
11
is_point({X, Y}) when is_number(X), is_number(Y) -> true;
12
is_point(_) -> false.
13
0 commit comments