summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--counter.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/counter.erl b/counter.erl
index 5146115..9282b1b 100644
--- a/counter.erl
+++ b/counter.erl
@@ -2,7 +2,8 @@
-export([start/0, count/1, next/0, stop/0]).
-start() -> register(counterPid, spawn(?MODULE, count, [0])).
+start() ->
+ register(counterPid, spawn(?MODULE, count, [0])).
count(N) when N > 32767 ->
count(0);