Skip to content

Commit 2fa5066

Browse files
committed
Remove underscore from example
1 parent d25a66f commit 2fa5066

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ setup.py
2727
2828
setup(name='hello-rust',
2929
version='1.0',
30-
rust_extensions=[RustExtension('hello_rust._helloworld',
30+
rust_extensions=[RustExtension('hello_rust.helloworld',
3131
'Cargo.toml', binding=Binding.PyO3)],
3232
packages=['hello_rust'],
3333
# rust extensions are not zip safe, just like C-extensions.

example/hello_rust/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from . import _helloworld
1+
from . import helloworld
22

33

44
def hello():
5-
_helloworld.run(_helloworld.val())
5+
helloworld.run(helloworld.val())

example/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
setup(name='hello-rust',
66
version='1.0',
77
rust_extensions=[
8-
RustExtension('hello_rust._helloworld',
8+
RustExtension('hello_rust.helloworld',
99
'Cargo.toml', binding=Binding.PyO3)],
1010
packages=['hello_rust'],
1111
# rust extensions are not zip safe, just like C-extensions.

example/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use pyo3::prelude::*;
66
use pyo3::py::modinit;
77

88
/// Module documentation string
9-
#[modinit(_helloworld)]
9+
#[modinit(helloworld)]
1010
fn init(py: Python, m: &PyModule) -> PyResult<()> {
1111

1212
#[pyfn(m, "run", args="*", kwargs="**")]

0 commit comments

Comments
 (0)