add specialization to docs
This commit is contained in:
parent
93b1dd8262
commit
005c36548b
|
@ -75,7 +75,7 @@ features = ["extension-module"]
|
||||||
**`src/lib.rs`**
|
**`src/lib.rs`**
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#![feature(proc_macro)]
|
#![feature(proc_macro, specialization)]
|
||||||
|
|
||||||
extern crate pyo3;
|
extern crate pyo3;
|
||||||
use pyo3::{py, PyResult, Python, PyModule};
|
use pyo3::{py, PyResult, Python, PyModule};
|
||||||
|
|
|
@ -4,6 +4,7 @@ Python module generation is powered by unstable [Procedural Macros](https://doc.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#![feature(proc_macro)]
|
#![feature(proc_macro)]
|
||||||
|
|
||||||
extern crate pyo3;
|
extern crate pyo3;
|
||||||
# fn main() {}
|
# fn main() {}
|
||||||
```
|
```
|
||||||
|
|
|
@ -70,7 +70,7 @@ features = ["extension-module"]
|
||||||
**`src/lib.rs`**
|
**`src/lib.rs`**
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#![feature(proc_macro)]
|
#![feature(proc_macro, specialization)]
|
||||||
|
|
||||||
extern crate pyo3;
|
extern crate pyo3;
|
||||||
use pyo3::{py, PyResult, Python, PyModule};
|
use pyo3::{py, PyResult, Python, PyModule};
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! #![feature(proc_macro)]
|
//! #![feature(proc_macro, specialization)]
|
||||||
//!
|
//!
|
||||||
//! extern crate pyo3;
|
//! extern crate pyo3;
|
||||||
//! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString};
|
//! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString};
|
||||||
|
|
Loading…
Reference in New Issue