summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhogelog <konbu.komuro@gmail.com>2023-12-12 07:13:54 +0900
committerGitHub <noreply@github.com>2023-12-12 07:13:54 +0900
commit4a94ce8569c9399bd286d943ff35f6f3a25ed1b6 (patch)
treefc00e37ce79c071395d8c0d5a1375a038d2b317d
parent69d60cc67ba0d7cf9318ccafa9d4c625103e955d (diff)
[DOC] Fix RDoc to match actual Kenrel.require behavior (#9180)
-rw-r--r--load.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/load.c b/load.c
index 716b5af98f..3d37948def 100644
--- a/load.c
+++ b/load.c
@@ -957,15 +957,14 @@ static VALUE rb_require_string_internal(VALUE fname, bool resurrect);
* If the filename starts with './' or '../', resolution is based on Dir.pwd.
*
* 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
- * extension on the current platform, Ruby loads the shared library as a
- * Ruby extension. Otherwise, Ruby tries adding ".rb", ".so", and so on
- * to the name until found. If the file named cannot be found, a LoadError
- * will be raised.
+ * the extension is ".so", ".o", or the default shared library extension on
+ * the current platform, Ruby loads the shared library as a Ruby extension.
+ * Otherwise, Ruby tries adding ".rb", ".so", and so on to the name until
+ * found. If the file named cannot be found, a LoadError will be raised.
*
- * For Ruby extensions the filename given may use any shared library
- * extension. For example, on Linux the socket extension is "socket.so" and
- * <code>require 'socket.dll'</code> will load the socket extension.
+ * For Ruby extensions the filename given may use ".so" or ".o". For example,
+ * on Windows the socket extension is "socket.dll" and
+ * <code>require 'socket.so'</code> will load the socket extension.
*
* The absolute path of the loaded file is added to
* <code>$LOADED_FEATURES</code> (<code>$"</code>). A file will not be