summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-12-14 19:10:32 +0000
committerNobuyoshi Nakada <[email protected]>2024-12-15 15:36:08 +0900
commit730731cc86d1cf87a3478ffc242d52c70eda2e42 (patch)
tree9f10d6f3d1edc197491efe21a70fd360c28a81df
parente9926afb24d00ffd721c39d535a3b91cb8a0ea56 (diff)
Fix links to syntax/literals.rdoc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12348
-rw-r--r--complex.c2
-rw-r--r--re.c2
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.