aboutsummaryrefslogtreecommitdiffstats
path: root/lib/gs/contribs/mandel/mandel.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-09-16 17:05:46 +0200
committerBjörn-Egil Dahlberg <[email protected]>2011-09-16 17:05:46 +0200
commit2c79dee4b4f2a0a692cdf28399fc069eca18f07a (patch)
tree9d8ded2e9a49a6b59d4f7348a7a75123f0cbe5d0 /lib/gs/contribs/mandel/mandel.erl
parent211389b07fed7ac2bc1d7f713f0b42dc93cf615c (diff)
downloadotp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.tar.gz
otp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.tar.bz2
otp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.zip
gs: Update to modern type guards in examples
Diffstat (limited to 'lib/gs/contribs/mandel/mandel.erl')
-rw-r--r--lib/gs/contribs/mandel/mandel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gs/contribs/mandel/mandel.erl b/lib/gs/contribs/mandel/mandel.erl
index d4d2452463..579f8e487b 100644
--- a/lib/gs/contribs/mandel/mandel.erl
+++ b/lib/gs/contribs/mandel/mandel.erl
@@ -119,7 +119,7 @@ start_client(Opts,Nodes) ->
try_random(random,Low,High) ->
random:uniform()*(High-Low)+Low;
-try_random(Float,_Low,_High) when number(Float) -> Float.
+try_random(Float,_Low,_High) when is_number(Float) -> Float.
%%-----------------------------------------------------------------