Skip to content

Commit

Permalink
docs: fix example in types.md (#4028)
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa authored Mar 31, 2024
1 parent cff4aa3 commit 3af9a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3af9a1f

Please sign in to comment.