Permalink
Browse files

Correct integer conversion

1.9.2p180 :004 >       puts "The first prime is " << primes[0]
The first prime is 
 => nil
  • Loading branch information...
1 parent 98ae87a commit 996ae2b4a408511f283b921d909d2d7a46b292f4 @dabble committed Mar 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 refresher.md
View
@@ -57,7 +57,7 @@ previously established rule.
primes = [2, 3, 5, 7]
people = ["Bob", "Alice", "Eve"]
- puts "The first prime is " << primes[0]
+ puts "The first prime is " << primes[0].to_s
puts "The last person is " << people[-1]
puts "The first person is " << people.first

0 comments on commit 996ae2b

Please sign in to comment.