Skip to content

Commit

Permalink
Update to_s doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptogopher authored and mrkn committed Jul 5, 2023
1 parent f63544d commit 8a94a29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2697,14 +2697,14 @@ BigDecimal_ceil(int argc, VALUE *argv, VALUE self)
*
* Examples:
*
* BigDecimal('-123.45678901234567890').to_s('5F')
* #=> '-123.45678 90123 45678 9'
* BigDecimal('-1234567890123.45678901234567890').to_s('5F')
* #=> '-123 45678 90123.45678 90123 45678 9'
*
* BigDecimal('123.45678901234567890').to_s('+8F')
* #=> '+123.45678901 23456789'
* BigDecimal('1234567890123.45678901234567890').to_s('+8F')
* #=> '+12345 67890123.45678901 23456789'
*
* BigDecimal('123.45678901234567890').to_s(' F')
* #=> ' 123.4567890123456789'
* BigDecimal('1234567890123.45678901234567890').to_s(' F')
* #=> ' 1234567890123.4567890123456789'
*/
static VALUE
BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
Expand Down

0 comments on commit 8a94a29

Please sign in to comment.