From 730731cc86d1cf87a3478ffc242d52c70eda2e42 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 14 Dec 2024 19:10:32 +0000 Subject: [PATCH] Fix links to syntax/literals.rdoc --- complex.c | 2 +- re.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/complex.c b/complex.c index 1d7ae694d5..999c5e5814 100644 --- a/complex.c +++ b/complex.c @@ -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. diff --git a/re.c b/re.c index 215098ba21..997837ec00 100644 --- a/re.c +++ b/re.c @@ -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.