Skip to content

Commit 15462c6

Browse files
committed
chaned pymodinit to pymodule in README
1 parent f58438e commit 15462c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ extern crate pyo3;
115115

116116
use ndarray::{ArrayD, ArrayViewD, ArrayViewMutD};
117117
use numpy::{IntoPyArray, PyArrayDyn};
118-
use pyo3::prelude::{pymodinit, Py, PyModule, PyResult, Python};
118+
use pyo3::prelude::{pymodule, Py, PyModule, PyResult, Python};
119119

120-
#[pymodinit]
120+
#[pymodule]
121121
fn rust_ext(_py: Python, m: &PyModule) -> PyResult<()> {
122122
// immutable example
123123
fn axpy(a: f64, x: ArrayViewD<f64>, y: ArrayViewD<f64>) -> ArrayD<f64> {

0 commit comments

Comments
 (0)