Skip to content

Commit 23b410d

Browse files
committed
Make wording a bit clearer
1 parent 9707a41 commit 23b410d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ which, like before, is the same as::
2525

2626
x = await f(*args, **kwargs)
2727

28-
An Outcome object may not be unwrapped twice. Attempting to do so will
29-
raise an :class:`AlreadyUsedError`.
28+
An Outcome object can only be unwrapped once. A second attempt would raise an
29+
:class:`AlreadyUsedError`.
3030

3131
See the :ref:`api-reference` for the types involved.

src/outcome/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class AlreadyUsedError(RuntimeError):
9-
"""An Outcome may not be unwrapped twice."""
9+
"""An Outcome can only be unwrapped once."""
1010
pass
1111

1212

0 commit comments

Comments
 (0)