From 4a94ce8569c9399bd286d943ff35f6f3a25ed1b6 Mon Sep 17 00:00:00 2001 From: hogelog Date: Tue, 12 Dec 2023 07:13:54 +0900 Subject: [PATCH] [DOC] Fix RDoc to match actual Kenrel.require behavior (#9180) --- load.c | 15 +++++++-------- 1 file 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 - * require 'socket.dll' 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 + * require 'socket.so' will load the socket extension. * * The absolute path of the loaded file is added to * $LOADED_FEATURES ($"). A file will not be