summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2024-01-11 12:52:14 -0800
committerJeremy Evans <code@jeremyevans.net>2024-01-11 12:58:05 -0800
commiteb8df2fa7aa7b008bd8dbce765694635a564e8f9 (patch)
tree6c33a250595b4e1f5dd5bf7bb7bd96cd0803b8d2 /load.c
parent76a207e5420b9ecdcc62c0d571f869c022d5d36e (diff)
Update Kernel#load documentation to remove phrase related to protection
Code loaded via Kernel#load can modify the global namespace even if the wrap parameter is provided. Fixes [Bug #19990]
Diffstat (limited to 'load.c')
-rw-r--r--load.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/load.c b/load.c
index d962d08b37..f0c62dc707 100644
--- a/load.c
+++ b/load.c
@@ -883,9 +883,8 @@ rb_load_protect(VALUE fname, int wrap, int *pstate)
* LoadError will be raised.
*
* If the optional _wrap_ parameter is +true+, the loaded script will
- * be executed under an anonymous module, protecting the calling
- * program's global namespace. If the optional _wrap_ parameter is a
- * module, the loaded script will be executed under the given module.
+ * be executed under an anonymous module. If the optional _wrap_ parameter
+ * is a module, the loaded script will be executed under the given module.
* In no circumstance will any local variables in the loaded file be
* propagated to the loading environment.
*/