Skip to content

Commit 16fdc1f

Browse files
committed
[DOC] Fix broken links to literals.rdoc
1 parent bc5662d commit 16fdc1f

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7845,7 +7845,7 @@ rb_ary_deconstruct(VALUE ary)
78457845
*
78467846
* You can create an \Array object explicitly with:
78477847
*
7848-
* - An {array literal}[doc/syntax/literals_rdoc.html#label-Array+Literals].
7848+
* - An {array literal}[rdoc-ref:syntax/literals.rdoc@Array+Literals].
78497849
*
78507850
* You can convert certain objects to Arrays with:
78517851
*

complex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ float_arg(VALUE self)
22692269
*
22702270
* You can create a \Complex object explicitly with:
22712271
*
2272-
* - A {complex literal}[doc/syntax/literals_rdoc.html#label-Complex+Literals].
2272+
* - A {complex literal}[rdoc-ref:syntax/literals.rdoc@Complex+Literals].
22732273
*
22742274
* You can convert certain objects to \Complex objects with:
22752275
*

hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6746,7 +6746,7 @@ static const rb_data_type_t env_data_type = {
67466746
*
67476747
* You can create a \Hash object explicitly with:
67486748
*
6749-
* - A {hash literal}[doc/syntax/literals_rdoc.html#label-Hash+Literals].
6749+
* - A {hash literal}[rdoc-ref:syntax/literals.rdoc@Hash+Literals].
67506750
*
67516751
* You can convert certain objects to Hashes with:
67526752
*

numeric.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ num_negative_p(VALUE num)
948948
*
949949
* You can create a \Float object explicitly with:
950950
*
951-
* - A {floating-point literal}[doc/syntax/literals_rdoc.html#label-Float+Literals].
951+
* - A {floating-point literal}[rdoc-ref:syntax/literals.rdoc@Float+Literals].
952952
*
953953
* You can convert certain objects to Floats with:
954954
*
@@ -3482,7 +3482,7 @@ rb_num2ull(VALUE val)
34823482
*
34833483
* You can create an \Integer object explicitly with:
34843484
*
3485-
* - An {integer literal}[doc/syntax/literals_rdoc.html#label-Integer+Literals].
3485+
* - An {integer literal}[rdoc-ref:syntax/literals.rdoc@Integer+Literals].
34863486
*
34873487
* You can convert certain objects to Integers with:
34883488
*

proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,7 @@ proc_ruby2_keywords(VALUE procval)
39723972
*
39733973
* lambda1 = lambda {|x| x**2 }
39743974
*
3975-
* * Use the {Lambda proc literal}[doc/syntax/literals_rdoc.html#label-Lambda+Proc+Literals] syntax
3975+
* * Use the {Lambda proc literal}[rdoc-ref:syntax/literals.rdoc@Lambda+Proc+Literals] syntax
39763976
* (also constructs a proc with lambda semantics):
39773977
*
39783978
* lambda2 = ->(x) { x**2 }

range.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ range_count(int argc, VALUE *argv, VALUE range)
20522052
*
20532053
* You can create an \Range object explicitly with:
20542054
*
2055-
* - A {range literal}[doc/syntax/literals_rdoc.html#label-Range+Literals]:
2055+
* - A {range literal}[rdoc-ref:syntax/literals.rdoc@Range+Literals]:
20562056
*
20572057
* # Ranges that use '..' to include the given end value.
20582058
* (1..4).to_a # => [1, 2, 3, 4]

rational.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2717,7 +2717,7 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
27172717
*
27182718
* You can create a \Rational object explicitly with:
27192719
*
2720-
* - A {rational literal}[doc/syntax/literals_rdoc.html#label-Rational+Literals].
2720+
* - A {rational literal}[rdoc-ref:syntax/literals.rdoc@Rational+Literals].
27212721
*
27222722
* You can convert certain objects to Rationals with:
27232723
*

re.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4081,7 +4081,7 @@ re_warn(const char *s)
40814081
*
40824082
* You can create a \Regexp object explicitly with:
40834083
*
4084-
* - A {regexp literal}[doc/syntax/literals_rdoc.html#label-Regexp+Literals].
4084+
* - A {regexp literal}[rdoc-ref:syntax/literals.rdoc@Regexp+Literals].
40854085
*
40864086
* :include: doc/regexp.rdoc
40874087
*/

string.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11234,7 +11234,7 @@ rb_str_unicode_normalized_p(int argc, VALUE *argv, VALUE str)
1123411234
*
1123511235
* You can create a \Symbol object explicitly with:
1123611236
*
11237-
* - A {symbol literal}[doc/syntax/literals_rdoc.html#label-Symbol+Literals].
11237+
* - A {symbol literal}[rdoc-ref:syntax/literals.rdoc@Symbol+Literals].
1123811238
*
1123911239
* The same Symbol object will be
1124011240
* created for a given name or string for the duration of a program's
@@ -11960,8 +11960,8 @@ rb_enc_interned_str_cstr(const char *ptr, rb_encoding *enc)
1196011960
*
1196111961
* You can create a \String object explicitly with:
1196211962
*
11963-
* - A {string literal}[doc/syntax/literals_rdoc.html#label-String+Literals].
11964-
* - A {heredoc literal}[doc/syntax/literals_rdoc.html#label-Here+Document+Literals].
11963+
* - A {string literal}[rdoc-ref:syntax/literals.rdoc@String+Literals].
11964+
* - A {heredoc literal}[rdoc-ref:syntax/literals.rdoc@Here+Document+Literals].
1196511965
*
1196611966
* You can convert certain objects to Strings with:
1196711967
*
@@ -12051,7 +12051,7 @@ rb_enc_interned_str_cstr(const char *ptr, rb_encoding *enc)
1205112051
* Note that <tt>\\\\</tt> is interpreted as an escape, i.e., a single backslash.
1205212052
*
1205312053
* Note also that a string literal consumes backslashes.
12054-
* See {String Literals}[doc/syntax/literals_rdoc.html#label-String+Literals] for details about string literals.
12054+
* See {String Literals}[rdoc-ref:syntax/literals.rdoc@String+Literals] for details about string literals.
1205512055
*
1205612056
* A back-reference is typically preceded by an additional backslash.
1205712057
* For example, if you want to write a back-reference <tt>\&</tt> in

0 commit comments

Comments
 (0)