[前][次][番号順一覧][スレッド一覧]

ruby-changes:71118

From: Nobuyoshi <ko1@a...>
Date: Tue, 8 Feb 2022 01:41:48 +0900 (JST)
Subject: [ruby-changes:71118] bc5662d9d8 (master): [DOC] Simplify links to global methods

https://git.ruby-lang.org/ruby.git/commit/?id=bc5662d9d8

From bc5662d9d8909363e67e01f3b1a2eecb0793d3ee Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 8 Feb 2022 01:18:56 +0900
Subject: [DOC] Simplify links to global methods

---
 array.c    | 2 +-
 complex.c  | 2 +-
 hash.c     | 2 +-
 numeric.c  | 4 ++--
 rational.c | 2 +-
 string.c   | 2 +-
 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) https://github.com/ruby/ruby/blob/trunk/array.c#L7849
  *
  *  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) https://github.com/ruby/ruby/blob/trunk/complex.c#L2273
  *
  * 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 = { https://github.com/ruby/ruby/blob/trunk/hash.c#L6750
  *
  *  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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L952
  *
  *  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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3486
  *
  * 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) https://github.com/ruby/ruby/blob/trunk/rational.c#L2721
  *
  * 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) https://github.com/ruby/ruby/blob/trunk/string.c#L11965
  *
  *  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+
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]