We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0125e commit 98424afCopy full SHA for 98424af
README.adoc
@@ -4307,10 +4307,10 @@ Introduce default values for hash keys via `Hash#fetch` as opposed to using cust
4307
----
4308
batman = { name: 'Bruce Wayne', is_evil: false }
4309
4310
-# bad - if we just use || operator with falsy value we won't get the expected result
+# bad - if we just use || operator with falsey value we won't get the expected result
4311
batman[:is_evil] || true # => true
4312
4313
-# good - fetch works correctly with falsy values
+# good - fetch works correctly with falsey values
4314
batman.fetch(:is_evil, true) # => false
4315
4316
0 commit comments