From 3af9a1f4e06216ad7b14a401d3cfcdc66eed12d7 Mon Sep 17 00:00:00 2001 From: Weijie Guo Date: Sun, 31 Mar 2024 16:03:38 +0800 Subject: [PATCH] docs: fix example in types.md (#4028) --- guide/src/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/types.md b/guide/src/types.md index a402e520..cd5e1052 100644 --- a/guide/src/types.md +++ b/guide/src/types.md @@ -78,7 +78,7 @@ Or, without the type annotations: use pyo3::prelude::*; use pyo3::types::PyList; -# fn example(py: Python<'_>) -> PyResult<()> { +fn example(py: Python<'_>) -> PyResult<()> { let x = PyList::empty_bound(py); x.append(1)?; let y = x.clone();