diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-01-11 12:52:14 -0800 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-01-11 12:58:05 -0800 |
| commit | eb8df2fa7aa7b008bd8dbce765694635a564e8f9 (patch) | |
| tree | 6c33a250595b4e1f5dd5bf7bb7bd96cd0803b8d2 /load.c | |
| parent | 76a207e5420b9ecdcc62c0d571f869c022d5d36e (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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. */ |
