Skip to content

Commit

Permalink
Merge pull request #3631 from wyfo/doc_typo
Browse files Browse the repository at this point in the history
docs: fix typos
  • Loading branch information
messense authored Dec 7, 2023
2 parents 07726ae + e73c795 commit 601d957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions guide/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
- [Emulating numeric types](class/numeric.md)
- [Emulating callable objects](class/call.md)
- [Type conversions](conversions.md)
- [Mapping of Rust types to Python types](conversions/tables.md)]
- [Conversion traits](conversions/traits.md)]
- [Mapping of Rust types to Python types](conversions/tables.md)
- [Conversion traits](conversions/traits.md)
- [Python exceptions](exception.md)
- [Calling Python from Rust](python_from_rust.md)
- [Using `async` and `await`](async-await.md)
Expand Down
2 changes: 1 addition & 1 deletion guide/src/async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Resulting future of an `async fn` decorated by `#[pyfunction]` must be `Send + '

As a consequence, `async fn` parameters and return types must also be `Send + 'static`, so it is not possible to have a signature like `async fn does_not_compile(arg: &PyAny, py: Python<'_>) -> &PyAny`.

However, there is an exception for method receiver, so async methods can accept `&self`/`&mut self`
However, there is an exception for method receiver, so async methods can accept `&self`/`&mut self`.

## Implicit GIL holding

Expand Down

0 comments on commit 601d957

Please sign in to comment.