diff --git a/guide/src/python_from_rust.md b/guide/src/python_from_rust.md index f9319e28c21..7b56d626ef8 100644 --- a/guide/src/python_from_rust.md +++ b/guide/src/python_from_rust.md @@ -281,7 +281,7 @@ The example below shows: imported from `utils/foo.py` `src/main.rs`: -```ignore +```rust,ignore use pyo3::prelude::*; fn main() -> PyResult<()> { @@ -311,7 +311,7 @@ from anywhere as long as your `app.py` is in the expected directory (in this exa that directory is `/usr/share/python_app`). `src/main.rs`: -```no_run +```rust,no_run use pyo3::prelude::*; use pyo3::types::PyList; use std::fs;