Skip to content

Commit ace1312

Browse files
committed
Fixes code highlight
1 parent 9788687 commit ace1312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ Long answer. Let's see these two examples:
209209
210210
def get_user_age() -> Result[IO[int], ValueError]:
211211
# Safe, but impure operation:
212-
prompt: IO[str] = impure(input)('What's your age?')
212+
prompt: IO[str] = impure(input)("What's your age?")
213213
214214
# Pure, but unsafe operation:
215215
return safe(int)(prompt)
216216
217-
In this case we return `Result[IO[int], ValueError]`,
217+
In this case we return ``Result[IO[int], ValueError]``,
218218
since ``IO`` operation is safe and cannot throw.
219219

220220
.. code:: python

0 commit comments

Comments
 (0)