Commit fe72d8f
committed
mruby-regexp: drop a stray paren from
The message closed a paren it never opened:
no implicit conversion of Float to Integer)
CRuby's wording for this case is not adopted along with it. It names the
argument rather than what `to_int` returned
(`can't convert Object to Integer (Object#to_int gives Float)`), which
needs the argument's class, and the only way to read that from mrblib is
`Object#class`, redefinable like the `is_a?` this branch has just stopped
trusting. Reporting a class the argument chose would be a worse answer
than reporting the wrong one of the two real classes, so the message
keeps its shape and loses only the paren.String#split's limit TypeError1 parent 99d4dab commit fe72d8f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments