[DOC] fixed a variable name [ci skip]

replaced "anObject" with "obj".  also marked up with simple `_`s
instead of `<i>`.
This commit is contained in:
Nobuyoshi Nakada 2019-10-15 22:38:39 +09:00
parent e0e93a199d
commit 81176095f4
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -154,9 +154,9 @@ cmp_le(VALUE x, VALUE y)
* call-seq: * call-seq:
* obj.between?(min, max) -> true or false * obj.between?(min, max) -> true or false
* *
* Returns <code>false</code> if <i>obj</i> <code><=></code> * Returns <code>false</code> if _obj_ <code><=></code> _min_ is less
* <i>min</i> is less than zero or if <i>anObject</i> <code><=></code> * than zero or if _obj_ <code><=></code> _max_ is greater than zero,
* <i>max</i> is greater than zero, <code>true</code> otherwise. * <code>true</code> otherwise.
* *
* 3.between?(1, 5) #=> true * 3.between?(1, 5) #=> true
* 6.between?(1, 5) #=> false * 6.between?(1, 5) #=> false
@ -177,9 +177,9 @@ cmp_between(VALUE x, VALUE min, VALUE max)
* call-seq: * call-seq:
* obj.clamp(min, max) -> obj * obj.clamp(min, max) -> obj
* *
* Returns <i>min</i> if <i>obj</i> <code><=></code> <i>min</i> is less * Returns _min_ if _obj_ <code><=></code> _min_ is less than zero,
* than zero, <i>max</i> if <i>obj</i> <code><=></code> <i>max</i> is * _max_ if _obj_ <code><=></code> _max_ is greater than zero and
* greater than zero and <i>obj</i> otherwise. * _obj_ otherwise.
* *
* 12.clamp(0, 100) #=> 12 * 12.clamp(0, 100) #=> 12
* 523.clamp(0, 100) #=> 100 * 523.clamp(0, 100) #=> 100