Merge pull request #2614 from ryanrussell/docs-codeblock-colors

docs: codeblock labels to `rust,ignore` format
This commit is contained in:
David Hewitt 2022-09-11 08:46:38 +01:00 committed by GitHub
commit 269a671283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;