Skip to content

Commit

Permalink
readme: simplify nil description
Browse files Browse the repository at this point in the history
  • Loading branch information
wkhere committed May 3, 2024
1 parent 8c7942d commit eeefd21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ for this, there is a definition what is considered "falsey": `false`, `nil`,
empty string, and zero, like in Python.

Boolean constants are `true` and `false`.
Another constant is `nil`, whose meaning is that
a declared but uninitialized variable (`var a`) has this value.
You can test equality to nil and it can be a part of a boolean expression,
acting as false.
Another constant is `nil`, value of an uninitialized variable (`var a`).

[1] Note that in Ruby `!` has surprising priority, though.

Expand Down

0 comments on commit eeefd21

Please sign in to comment.