Enable doc test for src/lib.rs examples

This commit is contained in:
messense 2017-06-15 16:06:04 +08:00
parent b54eb12c50
commit b8b9daf67a
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 6 additions and 3 deletions

View File

@ -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)]