We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b770f commit e057ed0Copy full SHA for e057ed0
README.md
@@ -65,7 +65,7 @@ fn main_<'py>(py: Python<'py>) -> PyResult<()> {
65
let pyarray: &PyArray1<i32> = py
66
.eval("np.array([1, 2, 3], dtype='int32')", Some(&dict), None)?
67
.extract()?;
68
- let slice = pyarray.as_slice()?;
+ let slice = pyarray.as_slice();
69
assert_eq!(slice, &[1, 2, 3]);
70
Ok(())
71
}
0 commit comments