Skip to content

Commit 503429c

Browse files
koicsodabrew
authored andcommitted
Update usage section of README.md (#939)
Follow up of #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.
1 parent b2cfca1 commit 503429c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ results.each do |row|
138138
# conveniently, row is a hash
139139
# the keys are the fields, as you'd expect
140140
# the values are pre-built ruby primitives mapped from their corresponding field types in MySQL
141-
puts row["id"] # row["id"].class == Fixnum
141+
puts row["id"] # row["id"].is_a? Integer
142142
if row["dne"] # non-existant hash entry is nil
143143
puts row["dne"]
144144
end

0 commit comments

Comments
 (0)