Skip to content

Commit 0886ab7

Browse files
authored
Merge pull request #84 from rth/fix-example
Fix simple-extension example readme
2 parents baa3fe8 + 8b9a22b commit 0886ab7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libc = "0.2.43"
1515
num-complex = "0.2.1"
1616
num-traits = "0.2.6"
1717
ndarray = "0.12.0"
18-
pyo3 = "0.5.0"
18+
pyo3 = "= 0.5.0"
1919

2020
[features]
2121
# In default setting, python version is automatically detected

examples/simple-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ numpy = { path = "../.." }
1212
ndarray = "0.12"
1313

1414
[dependencies.pyo3]
15-
version = "0.5.0-alpha.2"
15+
version = "= 0.5.0"
1616
features = ["extension-module"]

examples/simple-extension/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ import rust_ext
2121

2222
a = np.array([0.0, 1.0])
2323
b = np.array([2.0, 3.0])
24-
rust_ext(2.0, a, b)
24+
rust_ext.axpy(2.0, a, b)
2525
```
26+
which returns `array([2., 5.])`.

0 commit comments

Comments
 (0)