diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-21 16:50:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-21 16:50:51 +0900 |
commit | f51a6ace06cecd193bf00747a63809849e254050 (patch) | |
tree | c0af1ee2fa6bfb151314bf0abbe5135afd7f2486 /doc/extension.rdoc | |
parent | 8f755ad6c88f5a2318c0f810f872b9e54daa517c (diff) | |
download | ruby-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.rdoc | 2 |
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. |