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

ruby-changes:58256

From: Nobuyoshi <ko1@a...>
Date: Tue, 15 Oct 2019 22:40:19 +0900 (JST)
Subject: [ruby-changes:58256] 81176095f4 (master): [DOC] fixed a variable name [ci skip]

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

From 81176095f45a5c9f14fc61dfce041735094f893f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 15 Oct 2019 22:38:39 +0900
Subject: [DOC] fixed a variable name [ci skip]

replaced "anObject" with "obj".  also marked up with simple `_`s
instead of `<i>`.

diff --git a/compar.c b/compar.c
index 3d06592..027328d 100644
--- a/compar.c
+++ b/compar.c
@@ -154,9 +154,9 @@ cmp_le(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/compar.c#L154
  *  call-seq:
  *     obj.between?(min, max)    -> true or false
  *
- *  Returns <code>false</code> if <i>obj</i> <code><=></code>
- *  <i>min</i> is less than zero or if <i>anObject</i> <code><=></code>
- *  <i>max</i> is greater than zero, <code>true</code> otherwise.
+ *  Returns <code>false</code> if _obj_ <code><=></code> _min_ is less
+ *  than zero or if _obj_ <code><=></code> _max_ is greater than zero,
+ *  <code>true</code> otherwise.
  *
  *     3.between?(1, 5)               #=> true
  *     6.between?(1, 5)               #=> false
@@ -177,9 +177,9 @@ cmp_between(VALUE x, VALUE min, VALUE max) https://github.com/ruby/ruby/blob/trunk/compar.c#L177
  *  call-seq:
  *     obj.clamp(min, max) ->  obj
  *
- * Returns <i>min</i> if <i>obj</i> <code><=></code> <i>min</i> is less
- * than zero, <i>max</i> if <i>obj</i> <code><=></code> <i>max</i> is
- * greater than zero and <i>obj</i> otherwise.
+ * Returns _min_ if _obj_ <code><=></code> _min_ is less than zero,
+ * _max_ if _obj_ <code><=></code> _max_ is greater than zero and
+ * _obj_ otherwise.
  *
  *     12.clamp(0, 100)         #=> 12
  *     523.clamp(0, 100)        #=> 100
-- 
cgit v0.10.2


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

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