From 41f36f35ac1bbd3e877002f942462f071aa99724 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
Date: Wed, 3 May 2023 18:58:12 +0200
Subject: Clarify enif_open_resource_type if load fails
---
erts/doc/src/erl_nif.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index 4208aa269a..91e9e68d16 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -2849,7 +2849,9 @@ enif_map_iterator_destroy(env, &iter);
Notice that enif_open_resource_type is only allowed to be
called in the two callbacks
load and
- upgrade.
+ upgrade. The resource type
+ is only created or taken over if the calling load/upgrade
+ function returns successfully.
See also
enif_open_resource_type_x.
--
cgit v1.2.1