Skip to content

Commit 4faf63d

Browse files
authored
Update README.md - Fixed syntax error in example
Signed-off-by: Nicholas Pace <segfly@users.noreply.github.com>
1 parent 3eb014e commit 4faf63d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ engine.rule(
4242

4343
# Use computed logic for operations that must be correct:
4444
engine.rule(
45-
when=condition(Apple.baking && lambda: Inventory.apples < 10),
45+
when=condition(lambda: Apple.baking and Inventory.apples < 10),
4646
then=action(Order(apples=10)),
4747
)
4848

0 commit comments

Comments
 (0)