diff options
author | Tomas Abrahamsson <[email protected]> | 2015-06-05 18:38:40 +0200 |
---|---|---|
committer | Tomas Abrahamsson <[email protected]> | 2015-06-05 18:38:40 +0200 |
commit | 03ae2f86e6a6a4b013fc89a814221fbfe1fe5cf3 (patch) | |
tree | 0c5fe173ae88889b7882b3a813c70457a7811098 | |
parent | ccb7207b8ee271048905ef9b11448f98c645d533 (diff) | |
download | otp-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.
-rw-r--r-- | erts/doc/src/erl_nif.xml | 2 |
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, &iter, ERL_NIF_MAP_ITERATOR_FIRST); while (enif_map_iterator_get_pair(env, &iter, &key, &value)) { do_something(key,value); |