Skip to content

Commit

Permalink
Merge pull request #90 from pocke/improve-warning-message
Browse files Browse the repository at this point in the history
Tweak warning message of `BigDecimal.new`. Make the message to contain the correct constructor method name
  • Loading branch information
mrkn authored Dec 15, 2017
2 parents 93c853e + a11b449 commit 26d84ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,7 @@ static Real *BigDecimal_new(int argc, VALUE *argv);
static VALUE
BigDecimal_s_new(int argc, VALUE *argv, VALUE self)
{
rb_warning("BigDecimal.new is deprecated");
rb_warning("BigDecimal.new is deprecated; use Kernel.BigDecimal method instead.");
return rb_call_super(argc, argv);
}

Expand Down

0 comments on commit 26d84ba

Please sign in to comment.