Skip to content

Commit e8ab598

Browse files
Update comments using logic errors as examples
1 parent 6c80136 commit e8ab598

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

features/steps/integration_binding.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
4545
- error_case: ``"2 / 0 > 4 ? 'baz' : 'quux'"`` --> "division by zero"
4646
47+
TODO: update this example; this no longer results in "no matching overload".
4748
- error_right: ``"true && 1/0 != 0"`` --> "no matching overload"
4849
4950
Sometimes (``2 / 0 > 4``) the first exception is preserved.

src/celpy/celtypes.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,6 @@ def logical_or(x: Value, y: Value) -> Value:
349349
350350
Example 1::
351351
352-
false || 1/0 != 0
353-
354-
is a "no matching overload" error.
355-
356-
Example 2::
357-
358352
(2 / 0 > 3 ? false : true) || true
359353
360354
is a "True"

0 commit comments

Comments
 (0)