mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 12:10:52 +02:00
fixed space
This commit is contained in:
@@ -82,7 +82,7 @@ placeholder = "use string interpolation"
|
|||||||
"I can #{placeholder} when using double quoted strings"
|
"I can #{placeholder} when using double quoted strings"
|
||||||
#=> "I can use string interpolation 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 " + "world" #=> "hello world"
|
||||||
"hello " + 3 #=> TypeError: can't convert Fixnum into String
|
"hello " + 3 #=> TypeError: can't convert Fixnum into String
|
||||||
"hello " + 3.to_s #=> "hello 3"
|
"hello " + 3.to_s #=> "hello 3"
|
||||||
|
Reference in New Issue
Block a user