mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
commit
9d72815ea1
@ -53,7 +53,7 @@ You shouldn't either
|
|||||||
10.* 5 #=> 50
|
10.* 5 #=> 50
|
||||||
|
|
||||||
# Special values are objects
|
# Special values are objects
|
||||||
nil # Nothing to see here
|
nil # equivalent to null in other languages
|
||||||
true # truth
|
true # truth
|
||||||
false # falsehood
|
false # falsehood
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ puts "I'm printing!"
|
|||||||
|
|
||||||
# print to the output without a newline
|
# print to the output without a newline
|
||||||
print "I'm printing!"
|
print "I'm printing!"
|
||||||
#=> I'm printing! => nill
|
#=> I'm printing! => nil
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
x = 25 #=> 25
|
x = 25 #=> 25
|
||||||
|
Loading…
Reference in New Issue
Block a user