summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ruby.html.markdown11
1 files changed, 6 insertions, 5 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 2c9a4cb9..531971e9 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -43,17 +43,18 @@ false.class #=> FalseClass
1 == 1 #=> true
2 == 1 #=> false
-# apart from false itself, nil is the only other 'falsey' value
-
-nil == false #=> true
-0 == false #=> false
-
# Inequality
1 != 1 #=> false
2 != 1 #=> true
!true #=> false
!false #=> true
+# apart from false itself, nil is the only other 'falsey' value
+
+!nil #=> true
+!false #=> true
+!0 #=> false
+
# More comparisons
1 < 10 #=> true
1 > 10 #=> false