We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6abe62 commit a729790Copy full SHA for a729790
lib/truffle/strscan.rb
@@ -277,7 +277,7 @@ def scan_integer(base: 10)
277
end
278
279
if substr
280
- Primitive.string_to_inum(substr, base, true, true)
+ substr.to_i(base)
281
282
283
@@ -332,7 +332,7 @@ def terminate
332
333
334
def unscan
335
- raise ScanError if Primitive.nil?(@match)
+ raise ScanError unless @match
336
@pos = @prev_pos
337
@prev_pos = nil
338
@match = nil
0 commit comments