Skip to content

Commit

Permalink
Update usage section of README.md
Browse files Browse the repository at this point in the history
Follow up of brianmario#907.

Since `Fixnum` is a subclass of `Integer`, I thought it would be OK to
replace it with `Integer`. Especially, It will be a calm expression for
Ruby 2.4 or higher users.
  • Loading branch information
koic committed Feb 14, 2018
1 parent b2cfca1 commit 7563f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ results.each do |row|
# conveniently, row is a hash
# the keys are the fields, as you'd expect
# the values are pre-built ruby primitives mapped from their corresponding field types in MySQL
puts row["id"] # row["id"].class == Fixnum
puts row["id"] # row["id"].class == Integer
if row["dne"] # non-existant hash entry is nil
puts row["dne"]
end
Expand Down

0 comments on commit 7563f28

Please sign in to comment.