diff options
author | Tuncer Ayaz <[email protected]> | 2011-07-15 21:50:46 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-09-15 00:12:08 +0200 |
commit | f2bde05d1659b7cf2b1d7ed28ca181d27ff27b5c (patch) | |
tree | 9b5d3cb8a654fa0e9ea769e9650691a61e19b165 | |
parent | 56f482ae02ea2e1b531a86e7b14bc9a3619a918f (diff) | |
download | otp-f2bde05d1659b7cf2b1d7ed28ca181d27ff27b5c.tar.gz otp-f2bde05d1659b7cf2b1d7ed28ca181d27ff27b5c.tar.bz2 otp-f2bde05d1659b7cf2b1d7ed28ca181d27ff27b5c.zip |
Fix typos (variable name) in erl_nif(3)
-rw-r--r-- | erts/doc/src/erl_nif.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index cdce4ec0b8..48839e9081 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -216,14 +216,14 @@ ok <p/> <code type="none"> ERL_NIF_TERM term; - MyStruct* ptr = enif_alloc_resource(my_resource_type, sizeof(MyStruct)); + MyStruct* obj = enif_alloc_resource(my_resource_type, sizeof(MyStruct)); /* initialize struct ... */ - term = enif_make_resource(env, ptr); + term = enif_make_resource(env, obj); if (keep_a_reference_of_our_own) { - /* store 'ptr' in static variable, private data or other resource object */ + /* store 'obj' in static variable, private data or other resource object */ } else { enif_release_resource(obj); |