Bug #5267

BigDecimal#sqrt の rdoc で、引数は必須

Added by Makoto Kishimoto almost 4 years ago. Updated almost 4 years ago.

[ruby-dev:44452]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.9.4dev (2011-07-18 trunk 32577) [x86_64-freebsd8.2] Backport:

Description

ソース中の rdoc の記述では、BigDecimal#sqrt の引数は必須でないように
読めるが、必須なのでそのように。

diff --git ext/bigdecimal/bigdecimal.c ext/bigdecimal/bigdecimal.c
index 86070af..e70406a 100644
--- ext/bigdecimal/bigdecimal.c
+++ ext/bigdecimal/bigdecimal.c
@@ -1439,7 +1439,7 @@ BigDecimal_abs(VALUE self)
*
* Returns the square root of the value.
*
- * If n is specified, returns at least that many significant digits.
+ * Result has at least n significant digits.
*/
static VALUE
BigDecimal_sqrt(VALUE self, VALUE nFig)

Associated revisions

Revision 33238
Added by Ayumu AIZAWA almost 4 years ago

  • ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment. BigDecimal#sqrt requires argument. Reported by Makoto Kishimoto. Thanks for your contribution. [Bug #5267]

Revision 33238
Added by Ayumu AIZAWA almost 4 years ago

  • ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment. BigDecimal#sqrt requires argument. Reported by Makoto Kishimoto. Thanks for your contribution. [Bug #5267]

History

#1 Updated by Ayumu AIZAWA almost 4 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33238.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment. BigDecimal#sqrt requires argument. Reported by Makoto Kishimoto. Thanks for your contribution. [Bug #5267]

Also available in: Atom PDF