diff options
author | Ariel <arikrak@gmail.com> | 2014-03-10 18:06:44 -0400 |
---|---|---|
committer | Ariel <arikrak@gmail.com> | 2014-03-10 18:06:44 -0400 |
commit | 933cf6f10d3e894edef4efe1c0d2a4e7aafd3192 (patch) | |
tree | 0950c00f65bfaf5d8f1323ae67a64dde04bad320 /ruby.html.markdown | |
parent | d25c10969d2f21c2dde1c89b491f4a7ef15476c4 (diff) |
fixed space
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r-- | ruby.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown index 0a28a000..962853a2 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -82,10 +82,10 @@ placeholder = "use string interpolation" "I can #{placeholder} when using double quoted strings" #=> "I can use string interpolation when using double quoted strings" -#Combine strings but not with numbers +# Combine strings, but not with numbers "hello " + "world" #=> "hello world" "hello " + 3 #=> TypeError: can't convert Fixnum into String -"hello " +3.to_s #=> "hello 3" +"hello " + 3.to_s #=> "hello 3" # print to the output puts "I'm printing!" |