Enable doc test for src/lib.rs examples
This commit is contained in:
parent
b54eb12c50
commit
b8b9daf67a
|
@ -30,7 +30,8 @@
|
|||
//! also exposed as Python exceptions.
|
||||
//!
|
||||
//! # Example
|
||||
//! ```
|
||||
//!
|
||||
//! ```rust
|
||||
//! extern crate pyo3;
|
||||
//!
|
||||
//! use pyo3::{Python, PyDict, PyResult};
|
||||
|
@ -72,9 +73,11 @@
|
|||
//!
|
||||
//!
|
||||
//! # Example
|
||||
//! ```
|
||||
//!
|
||||
//! ```rust
|
||||
//! #![feature(proc_macro)]
|
||||
//! #[macro_use] extern crate pyo3;
|
||||
//!
|
||||
//! extern crate pyo3;
|
||||
//! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString};
|
||||
//!
|
||||
//! #[py::modinit(hello)]
|
||||
|
|
Loading…
Reference in New Issue