Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Jan 6, 2025
1 parent 13a5560 commit d619d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mathics/core/assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ def rejected_because_protected(

def unroll_conditions(lhs: BaseElement) -> Tuple[BaseElement, Optional[Expression]]:
"""
If `element` is a nested `Condition` expression,
If `lhst` is a nested `Condition` expression,
gather all the conditions in a single one, and returns a tuple
with the `element` stripped from the conditions and the shallow condition.
If there is not any condition, returns the lhs and None
with the `lhs` stripped from the conditions and the shallow condition.
If there is not any condition, returns the `lhs` and None
"""
if isinstance(lhs, Symbol):
return lhs, None
Expand Down

0 comments on commit d619d36

Please sign in to comment.