Skip to content

Commit

Permalink
Fix typo (#4052)
Browse files Browse the repository at this point in the history
Fix incorrect closing brackets
  • Loading branch information
blmarket authored and davidhewitt committed Apr 16, 2024
1 parent b8ec43e commit 68d1973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/ecosystem/async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Export an async function that makes use of `async-std`:
use pyo3::{prelude::*, wrap_pyfunction};

#[pyfunction]
fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>>> {
fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
pyo3_asyncio::async_std::future_into_py(py, async {
async_std::task::sleep(std::time::Duration::from_secs(1)).await;
Ok(Python::with_gil(|py| py.None()))
Expand Down

0 comments on commit 68d1973

Please sign in to comment.