We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927480e commit 9b76e0aCopy full SHA for 9b76e0a
README.adoc
@@ -1554,7 +1554,7 @@ Avoid multi-line `?:` (the ternary operator); use `if`/`unless` instead.
1554
=== `if` as a Modifier [[if-as-a-modifier]]
1555
1556
Prefer modifier `if`/`unless` usage when you have a single-line body.
1557
-Another good alternative is the usage of control flow `&&`/`||`.
+Another good alternative is the usage of control flow `and`/`or`.
1558
1559
[source,ruby]
1560
----
@@ -1567,7 +1567,7 @@ end
1567
do_something if some_condition
1568
1569
# another good option
1570
-some_condition && do_something
+some_condition and do_something
1571
1572
1573
=== Multi-line `if` Modifiers [[no-multiline-if-modifiers]]
0 commit comments