Skip to content

Commit

Permalink
Fix typo in README syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
francium committed Dec 5, 2023
1 parent 911651d commit 8856648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ generator-based, the final result must be the first line, not the last.
for y in Ok(True)
)

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

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

Expand Down

0 comments on commit 8856648

Please sign in to comment.