Skip to content

Commit 68d1973

Browse files
blmarketdavidhewitt
authored andcommitted
Fix typo (#4052)
Fix incorrect closing brackets
1 parent b8ec43e commit 68d1973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/ecosystem/async-await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Export an async function that makes use of `async-std`:
120120
use pyo3::{prelude::*, wrap_pyfunction};
121121

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy