summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2022-02-25 14:22:22 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-01 09:59:12 +0900
commit1a20bb1c986961786a981af95ed964f0625eeed0 (patch)
tree5cd6be24450890b61791d486408e413f98a573c0
parent4a55f501ef750f114470cfc1a5a1e609303e94a9 (diff)
[DOC] Fix function name in example
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5599
-rw-r--r--include/ruby/internal/variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/variable.h b/include/ruby/internal/variable.h
index 1f84b92db0..c017ffe3f7 100644
--- a/include/ruby/internal/variable.h
+++ b/include/ruby/internal/variable.h
@@ -147,7 +147,7 @@ RBIMPL_ATTR_NONNULL(())
* init_Foo(void)
* {
* foo = rb_eval_string("...");
- * rb_define_global_variable("$foo", &foo);
+ * rb_define_variable("$foo", &foo);
* }
* ```
*