[DOC] Fix alignment of values for Integer#div
This commit is contained in:
parent
c0481e5818
commit
6934a60ab1
12
numeric.c
12
numeric.c
@ -4242,12 +4242,12 @@ fix_idiv(VALUE x, VALUE y)
|
|||||||
* Performs integer division; returns the integer result of dividing +self+
|
* Performs integer division; returns the integer result of dividing +self+
|
||||||
* by +numeric+:
|
* by +numeric+:
|
||||||
*
|
*
|
||||||
* 4.div(3) # => 1
|
* 4.div(3) # => 1
|
||||||
* 4.div(-3) # => -2
|
* 4.div(-3) # => -2
|
||||||
* -4.div(3) # => -2
|
* -4.div(3) # => -2
|
||||||
* -4.div(-3) # => 1
|
* -4.div(-3) # => 1
|
||||||
* 4.div(3.0) # => 1
|
* 4.div(3.0) # => 1
|
||||||
* 4.div(Rational(3, 1)) # => 1
|
* 4.div(Rational(3, 1)) # => 1
|
||||||
*
|
*
|
||||||
* Raises an exception if +numeric+ does not have method +div+.
|
* Raises an exception if +numeric+ does not have method +div+.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user