mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-rational/rational.c: update error message.
This commit is contained in:
@@ -722,7 +722,7 @@ rational_pow(mrb_state *mrb, mrb_value x)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
mrb_raisef(mrb, E_TYPE_ERROR, "%T cannot convert to Rational", y);
|
||||
mrb_raisef(mrb, E_TYPE_ERROR, "%T cannot be converted to Rational", y);
|
||||
}
|
||||
return mrb_float_value(mrb, pow(d1, d2));
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user