ruby-changes:61431
From: Nobuyoshi <ko1@a...>
Date: Sat, 30 May 2020 22:05:51 +0900 (JST)
Subject: [ruby-changes:61431] e10798b3a3 (master): [DOC] refined `Kernel#.require` and `Kernel#.load` [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=e10798b3a3 From e10798b3a3dc1f4e4225ad1b92f9157b58df52d9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 30 May 2020 22:04:49 +0900 Subject: [DOC] refined `Kernel#.require` and `Kernel#.load` [ci skip] diff --git a/load.c b/load.c index 0ee59b5..22f30c6 100644 --- a/load.c +++ b/load.c @@ -680,9 +680,9 @@ rb_load_protect(VALUE fname, int wrap, int *pstate) https://github.com/ruby/ruby/blob/trunk/load.c#L680 * * 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) https://github.com/ruby/ruby/blob/trunk/load.c#L786 * 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/