Fix links to syntax/literals.rdoc

This commit is contained in:
Stan Lo 2024-12-14 19:10:32 +00:00 committed by Nobuyoshi Nakada
parent e9926afb24
commit 730731cc86
Notes: git 2024-12-15 06:36:25 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -2473,7 +2473,7 @@ float_arg(VALUE self)
*
* You can create a \Complex object from rectangular coordinates with:
*
* - A {complex literal}[rdoc-ref:doc/syntax/literals.rdoc@Complex+Literals].
* - A {complex literal}[rdoc-ref:syntax/literals.rdoc@Complex+Literals].
* - \Method Complex.rect.
* - \Method Kernel#Complex, either with numeric arguments or with certain string arguments.
* - \Method String#to_c, for certain strings.

2
re.c
View File

@ -3653,7 +3653,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos, VALUE* set_match)
* if and only if +self+:
*
* - Is a regexp literal;
* see {Regexp Literals}[rdoc-ref:literals.rdoc@Regexp+Literals].
* see {Regexp Literals}[rdoc-ref:syntax/literals.rdoc@Regexp+Literals].
* - Does not contain interpolations;
* see {Regexp interpolation}[rdoc-ref:Regexp@Interpolation+Mode].
* - Is at the left of the expression.