From c2be5a81faceb091da55e40c007947ae05e2cde7 Mon Sep 17 00:00:00 2001 From: Amalrik Maia Date: Tue, 29 Sep 2026 10:20:38 -0300 Subject: [PATCH] Fix Perl and/or precedence note In Perl, and has higher precedence than or, so the note saying they don't have different precedence was inverted. Fixes #982 --- README.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index cb5b0333..43efbfc8 100644 --- a/README.adoc +++ b/README.adoc @@ -1611,8 +1611,8 @@ foo = true and false # results in foo being equal to true. Equivalent to (foo = bar = false or true # results in bar being equal to false. Equivalent to (bar = false) or true ---- -Also `&&` has higher precedence than `||`, whereas `and` and `or` have the same one. Funny enough, even though `and` and `or` -were inspired by Perl, they don't have different precedence in Perl. +Also `&&` has higher precedence than `||`, whereas `and` and `or` have the same one. Funny enough, `and` and `or` +were inspired by Perl, where `and` does have higher precedence than `or`. [source,ruby] ----