summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2015-10-09 10:02:33 -0500
committerLevi Bostian <levi.bostian@gmail.com>2015-10-09 10:02:33 -0500
commit5bbb0200d7f372cd7ada55936e80c131ffb5091a (patch)
tree2b6a0160ed163a80de0ce6540d2a062fc94cb4ef
parentbd56a72723cd6d918c403390cf9f376c75865c02 (diff)
parentf165e721cedf80edf560304b7d83b0687045f8b1 (diff)
Merge pull request #1373 from kalebdavis/patch-1
Update ruby.html.markdown
-rw-r--r--ruby.html.markdown8
1 files changed, 7 insertions, 1 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 8f23b2e6..3e85a038 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -106,8 +106,14 @@ placeholder = 'use string interpolation'
'hello ' + 3 #=> TypeError: can't convert Fixnum into String
'hello ' + 3.to_s #=> "hello 3"
-# print to the output
+# print to the output with a newline at the end
puts "I'm printing!"
+#=> I'm printing!
+#=> nil
+
+# print to the output without a newline
+print "I'm printing!"
+#=> I'm printing! => nill
# Variables
x = 25 #=> 25