aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorTomas Abrahamsson <[email protected]>2015-06-05 18:38:40 +0200
committerTomas Abrahamsson <[email protected]>2015-06-05 18:38:40 +0200
commit03ae2f86e6a6a4b013fc89a814221fbfe1fe5cf3 (patch)
tree0c5fe173ae88889b7882b3a813c70457a7811098 /erts
parentccb7207b8ee271048905ef9b11448f98c645d533 (diff)
downloadotp-03ae2f86e6a6a4b013fc89a814221fbfe1fe5cf3.tar.gz
otp-03ae2f86e6a6a4b013fc89a814221fbfe1fe5cf3.tar.bz2
otp-03ae2f86e6a6a4b013fc89a814221fbfe1fe5cf3.zip
Add forgotten argument to example in erl_nif doc
In the documentation for erl_nif, in the map iterator example, the iterator argument was forgotten in the call to function enif_map_iterator_create. This is now fixed.
Diffstat (limited to 'erts')
-rw-r--r--erts/doc/src/erl_nif.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index f64381c99d..412c0e02ac 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -1177,7 +1177,7 @@ typedef enum {
<code type="none">
ERL_NIF_TERM key, value;
ErlNifMapIterator iter;
-enif_map_iterator_create(env, my_map, ERL_NIF_MAP_ITERATOR_FIRST);
+enif_map_iterator_create(env, my_map, &amp;iter, ERL_NIF_MAP_ITERATOR_FIRST);
while (enif_map_iterator_get_pair(env, &amp;iter, &amp;key, &amp;value)) {
do_something(key,value);