docs: fix example in types.md (#4028)
This commit is contained in:
parent
cff4aa3cc8
commit
3af9a1f4e0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue