summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-06-03 14:09:11 +0900
committerNobuyoshi Nakada <[email protected]>2022-06-03 14:09:11 +0900
commit5342fcb67fbefeea28d2c2f6820d89f6ef3caffb ()
treec751be21e67184fa216e7b14919821c6c5eec606 /load.c
parent4eb140b0e4ca53aac704394cfdf3e0da27c2b3c7 (diff)
[DOC] Subjects of `autoload` are not restricted to modules
-rw-r--r--load.c8
1 files changed, 4 insertions, 4 deletions
@@ -1303,10 +1303,10 @@ ruby_init_ext(const char *name, void (*init)(void))
/*
* call-seq:
- * mod.autoload(module, filename) -> nil
*
* Registers _filename_ to be loaded (using Kernel::require)
- * the first time that _module_ (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)
/*
* call-seq:
- * autoload(module, filename) -> nil
*
* Registers _filename_ to be loaded (using Kernel::require)
- * the first time that _module_ (which may be a String or
* a symbol) is accessed.
*
* autoload(:MyModule, "/usr/local/lib/modules/my_module.rb")