aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-30 22:04:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-30 22:04:49 +0900
commite10798b3a3dc1f4e4225ad1b92f9157b58df52d9 (patch)
tree4f3fd067a6261fe2266f91a04ba689af7b3e80ca /load.c
parent57fd44d374cc6ff807b1c92b841e6f8a037b799e (diff)
downloadruby-e10798b3a3dc1f4e4225ad1b92f9157b58df52d9.tar.gz
[DOC] refined `Kernel#.require` and `Kernel#.load` [ci skip]
Diffstat (limited to 'load.c')
-rw-r--r--load.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/load.c b/load.c
index 0ee59b5c04..22f30c6822 100644
--- a/load.c
+++ b/load.c
@@ -680,9 +680,9 @@ rb_load_protect(VALUE fname, int wrap, int *pstate)
*
* Loads and executes the Ruby program in the file _filename_.
*
- * If the filename neither resolve to an absolute path, or start with
- * './' or '../', the file is searched for in the library directories
- * listed in <code>$:</code>.
+ * If the filename neither resolves to an absolute path nor starts with
+ * './' or '../', the file will be searched for in the library
+ * directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
*
* If the optional _wrap_ parameter is +true+, the loaded script will
* be executed under an anonymous module, protecting the calling
@@ -786,9 +786,9 @@ load_unlock(const char *ftptr, int done)
* Loads the given +name+, returning +true+ if successful and +false+ if the
* feature is already loaded.
*
- * If the filename neither resolve to an absolute path, or start with
- * './' or '../', it will be searched for in the directories listed
- * in <code>$LOAD_PATH</code> (<code>$:</code>).
+ * If the filename neither resolves to an absolute path nor starts with
+ * './' or '../', the file will be searched for in the library
+ * directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
*
* If the filename has the extension ".rb", it is loaded as a source file; if
* the extension is ".so", ".o", or ".dll", or the default shared library