We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Severity: info | Confidence: high | Auto-fix: ❌
info
high
chars.each → each_char — Use each_char instead of .chars.each to avoid allocating an intermediate array of characters.
each_char
.chars.each
str.chars.each { |c| ... }
Note
See bench results at bench/cat-036/
bench/cat-036/
There was an error while loading. Please reload this page.