Skip to content

Commit

Permalink
docs: fix comments in state documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Dec 4, 2023
1 parent 56a238e commit 29d1807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ def combined_functions_on_state(
>>> s_double
U(conditions=[1, 2, 1, 2])
# We can also pass parameters to the functions:
We can also pass parameters to the functions:
>>> def multiply(conditions, multiplier):
... return [el * multiplier for el in conditions]
>>> double_and_triple = combined_functions_on_state(
Expand All @@ -1322,7 +1322,7 @@ def combined_functions_on_state(
>>> s_double_triple
U(conditions=[2, 4, 3, 6])
# If the functions return a Delta object, we don't need to provide an output argument
If the functions return a Delta object, we don't need to provide an output argument:
>>> def decrement(conditions, dec):
... return Delta(conditions=[el-dec for el in conditions])
>>> def increment(conditions, inc):
Expand Down

0 comments on commit 29d1807

Please sign in to comment.