summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2021-02-22 16:35:47 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-23 10:48:31 +0900
commit09c74a170219818e8317806df170f72812db0ef8 (patch)
tree6eabfbaa4f58698f2850bfd0b6467e9a5ce5e07e /doc
parent7d4a3ac0c5a004a410c425d334975e09420f47cd (diff)
[DOC] Fix copy+paste mistake [ci skip]
It was introduced in commit 089b7a84606925e885fe91050483a352735aa91e .
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4211
Diffstat (limited to 'doc')
-rw-r--r--doc/extension.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index 5032050..f28f401 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -817,7 +817,7 @@ Here's the example of an initializing function.
/* define DBM class */
VALUE cDBM = rb_define_class("DBM", rb_cObject);
/* Redefine DBM.allocate
- rb_define_alloc_func(rb_cDBM, fdbm_alloc);
+ rb_define_alloc_func(cDBM, fdbm_alloc);
/* DBM includes Enumerable module */
rb_include_module(cDBM, rb_mEnumerable);