[DOC] Fix alignment of values for Integer#div

This commit is contained in:
Peter Zhu 2024-01-01 11:14:42 -05:00
parent c0481e5818
commit 6934a60ab1

View File

@ -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+.
* *