aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-08-31 14:35:44 +0200
committerGitHub <[email protected]>2017-08-31 14:35:44 +0200
commit8ff812c4087cc536f2ef7a8a33eb74226ed9a1e7 (patch)
treee11fbceb8a5eb7dce49760331df07006d3ae1319 /lib/stdlib
parent919ddb608125db223f43b328e53fae37cab312ce (diff)
parent709c5ed53f282693f1731aff8f0c8080dde872dc (diff)
downloadotp-8ff812c4087cc536f2ef7a8a33eb74226ed9a1e7.tar.gz
otp-8ff812c4087cc536f2ef7a8a33eb74226ed9a1e7.tar.bz2
otp-8ff812c4087cc536f2ef7a8a33eb74226ed9a1e7.zip
Merge PR-1543 from gootik/gootik-ets-doc
Changes confusing example of a bad guard in ets:fun2ms
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/doc/src/ets.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml
index f6f3d18d6a..95af2b77a5 100644
--- a/lib/stdlib/doc/src/ets.xml
+++ b/lib/stdlib/doc/src/ets.xml
@@ -408,9 +408,9 @@
calls cannot be in the guard or body of the fun. Calls to built-in
match specification functions is of course allowed:</p>
<pre>
-4> <input>ets:fun2ms(fun({M,N}) when N > X, is_atomm(M) -> M end).</input>
+4> <input>ets:fun2ms(fun({M,N}) when N > X, my_fun(M) -> M end).</input>
Error: fun containing local Erlang function calls
-('is_atomm' called in guard) cannot be translated into match_spec
+('my_fun' called in guard) cannot be translated into match_spec
{error,transform_error}
5> <input>ets:fun2ms(fun({M,N}) when N > X, is_atom(M) -> M end).</input>
[{{'$1','$2'},[{'>','$2',{const,3}},{is_atom,'$1'}],['$1']}]</pre>