Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/source/purity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ input ``L`` which may have external state. Consider the following execution:
>>> data = [1, 2, 3]
>>> result = powers(data)

>>> print result
>>> print(result)
[1, 4, 9]
>>> print data
>>> print(data)
[1, 4, 9]

We see that ``powers`` affected the variable ``data``. Users of our function
Expand All @@ -59,7 +59,7 @@ Another problem occurs when we run this code in a different context:

>>> data = [1, 2, 3]
>>> result = powers(data)
>>> print result
>>> print(result)
[1, 8, 27]

When we give ``powers`` the same inputs we receive different outputs; how could
Expand Down