Skip to content

Commit 8856648

Browse files
committed
Fix typo in README syntax
1 parent 911651d commit 8856648

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ generator-based, the final result must be the first line, not the last.
361361
for y in Ok(True)
362362
)
363363

364-
Note that if you exclude the type annotation, ``final_result: Result[float,
365-
int] = ...``, your type checker may be unable to infer the return type. To
366-
avoid an errors or warnings from your type checker, you should add a type hint
367-
when using the ``do`` function.
364+
Note that if you exclude the type annotation,
365+
``final_result: Result[float, int] = ...``, your type checker may be unable to
366+
infer the return type. To avoid an errors or warnings from your type checker,
367+
you should add a type hint when using the ``do`` function.
368368

369369
This is similar to Rust's `m! macro <https://docs.rs/do-notation/latest/do_notation/>`_:
370370

0 commit comments

Comments
 (0)