summaryrefslogtreecommitdiff
path: root/doc/extension.rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-21 16:50:51 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-21 16:50:51 +0900
commitf51a6ace06cecd193bf00747a63809849e254050 (patch)
treec0af1ee2fa6bfb151314bf0abbe5135afd7f2486 /doc/extension.rdoc
parent8f755ad6c88f5a2318c0f810f872b9e54daa517c (diff)
downloadruby-f51a6ace06cecd193bf00747a63809849e254050.tar.gz
[DOC] prefer RUBY_DEFAULT_FREE to a magic number [ci skip]
Diffstat (limited to 'doc/extension.rdoc')
-rw-r--r--doc/extension.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index fc83801b3d..a1ad930d7e 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -701,7 +701,7 @@ Note that it is recommended to avoid such a reference.
++
dfree is a function to free the pointer allocation.
-If this is -1, the pointer will be just freed.
+If this is RUBY_DEFAULT_FREE, the pointer will be just freed.
dsize calculates memory consumption in bytes by the struct.
Its parameter is a pointer to your struct.