Skip to content

Commit

Permalink
Use Array#at, which is a bit lighter than #[].
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 2, 2011
1 parent 74e3b51 commit 7bf3a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def one_char
return nil if @in_buf == nil
end

c = @in_buf[@in_index]
c = @in_buf.at(@in_index)
@in_index += 1
c
end
Expand Down

0 comments on commit 7bf3a63

Please sign in to comment.