[DOC] Improve description of LoadError#path and SyntaxError#path

This commit is contained in:
David Rodríguez 2024-09-26 18:00:34 +02:00 committed by GitHub
parent 9a966a09cb
commit 1172d65926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-09-26 16:00:54 +00:00
Merged: https://github.com/ruby/ruby/pull/11684

Merged-By: nobu <nobu@ruby-lang.org>

View File

@ -3507,11 +3507,11 @@ Init_Exception(void)
* and will render `idPath` as an attribute name without this trick */
ID path = idPath;
/* the path failed to parse */
/* the path that failed to parse */
rb_attr(rb_eSyntaxError, path, TRUE, FALSE, FALSE);
rb_eLoadError = rb_define_class("LoadError", rb_eScriptError);
/* the path failed to load */
/* the path that failed to load */
rb_attr(rb_eLoadError, path, TRUE, FALSE, FALSE);
rb_eNotImpError = rb_define_class("NotImplementedError", rb_eScriptError);