aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--array.c2
-rw-r--r--complex.c2
-rw-r--r--hash.c2
-rw-r--r--numeric.c4
-rw-r--r--rational.c2
-rw-r--r--string.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/array.c b/array.c
index 55987f52b1..165e9a80e8 100644
--- a/array.c
+++ b/array.c
@@ -7849,7 +7849,7 @@ rb_ary_deconstruct(VALUE ary)
*
* You can convert certain objects to Arrays with:
*
- * - \Method {Array}[Kernel.html#method-i-Array].
+ * - \Method #Array.
*
* An \Array can contain different types of objects. For
* example, the array below contains an Integer, a String and a Float:
diff --git a/complex.c b/complex.c
index a3dda4d0e1..658e41359a 100644
--- a/complex.c
+++ b/complex.c
@@ -2273,7 +2273,7 @@ float_arg(VALUE self)
*
* You can convert certain objects to \Complex objects with:
*
- * - \Method {Complex}[Kernel.html#method-i-Complex].
+ * - \Method #Complex.
*
* Complex object can be created as literal, and also by using
* Kernel#Complex, Complex::rect, Complex::polar or to_c method.
diff --git a/hash.c b/hash.c
index 08e08935d2..78e0b50a26 100644
--- a/hash.c
+++ b/hash.c
@@ -6750,7 +6750,7 @@ static const rb_data_type_t env_data_type = {
*
* You can convert certain objects to Hashes with:
*
- * - \Method {Hash}[Kernel.html#method-i-Hash].
+ * - \Method #Hash.
*
* You can create a \Hash by calling method Hash.new.
*
diff --git a/numeric.c b/numeric.c
index bd1121b567..216b33920c 100644
--- a/numeric.c
+++ b/numeric.c
@@ -952,7 +952,7 @@ num_negative_p(VALUE num)
*
* You can convert certain objects to Floats with:
*
- * - \Method {Float}[Kernel.html#method-i-Float].
+ * - \Method #Float.
*
* == What's Here
*
@@ -3486,7 +3486,7 @@ rb_num2ull(VALUE val)
*
* You can convert certain objects to Integers with:
*
- * - \Method {Integer}[Kernel.html#method-i-Integer].
+ * - \Method #Integer.
*
* An attempt to add a singleton method to an instance of this class
* causes an exception to be raised.
diff --git a/rational.c b/rational.c
index 7817bdbcef..6d013c57c9 100644
--- a/rational.c
+++ b/rational.c
@@ -2721,7 +2721,7 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
*
* You can convert certain objects to Rationals with:
*
- * - \Method {Rational}[Kernel.html#method-i-Rational].
+ * - \Method #Rational.
*
* Examples
*
diff --git a/string.c b/string.c
index af3c0b7aac..e52812af16 100644
--- a/string.c
+++ b/string.c
@@ -11965,7 +11965,7 @@ rb_enc_interned_str_cstr(const char *ptr, rb_encoding *enc)
*
* You can convert certain objects to Strings with:
*
- * - \Method {String}[Kernel.html#method-i-String].
+ * - \Method #String.
*
* Some \String methods modify +self+.
* Typically, a method whose name ends with <tt>!</tt> modifies +self+