mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
fixed space
This commit is contained in:
parent
d25c10969d
commit
933cf6f10d
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user