[前][次][番号順一覧][スレッド一覧]

ruby-changes:72046

From: Nobuyoshi <ko1@a...>
Date: Fri, 3 Jun 2022 14:13:35 +0900 (JST)
Subject: [ruby-changes:72046] 5342fcb67f (master): [DOC] Subjects of `autoload` are not restricted to modules

https://git.ruby-lang.org/ruby.git/commit/?id=5342fcb67f

From 5342fcb67fbefeea28d2c2f6820d89f6ef3caffb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 3 Jun 2022 14:09:11 +0900
Subject: [DOC] Subjects of `autoload` are not restricted to modules

---
 load.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/load.c b/load.c
index f2f55fde2b..b8d0da7fc2 100644
--- a/load.c
+++ b/load.c
@@ -1303,10 +1303,10 @@ ruby_init_ext(const char *name, void (*init)(void)) https://github.com/ruby/ruby/blob/trunk/load.c#L1303
 
 /*
  *  call-seq:
- *     mod.autoload(module, filename)   -> nil
+ *     mod.autoload(const, filename)   -> nil
  *
  *  Registers _filename_ to be loaded (using Kernel::require)
- *  the first time that _module_ (which may be a String or
+ *  the first time that _const_ (which may be a String or
  *  a symbol) is accessed in the namespace of _mod_.
  *
  *     module A
@@ -1366,10 +1366,10 @@ rb_mod_autoload_p(int argc, VALUE *argv, VALUE mod) https://github.com/ruby/ruby/blob/trunk/load.c#L1366
 
 /*
  *  call-seq:
- *     autoload(module, filename)   -> nil
+ *     autoload(const, filename)   -> nil
  *
  *  Registers _filename_ to be loaded (using Kernel::require)
- *  the first time that _module_ (which may be a String or
+ *  the first time that _const_ (which may be a String or
  *  a symbol) is accessed.
  *
  *     autoload(:MyModule, "/usr/local/lib/modules/my_module.rb")
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]