Skip to content

Commit ce3a106

Browse files
committed
Make SliceBox::DESCRIPTION null-terminated
1 parent 3d62344 commit ce3a106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slice_box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ unsafe impl<T> type_object::PyTypeInfo for SliceBox<T> {
3838
type AsRefTarget = PyCell<Self>;
3939
const NAME: &'static str = "SliceBox";
4040
const MODULE: Option<&'static str> = Some("_rust_numpy");
41-
const DESCRIPTION: &'static str = "Memory store for PyArray using rust's Box<[T]>.";
41+
const DESCRIPTION: &'static str = "Memory store for PyArray using rust's Box<[T]> \0";
4242
const FLAGS: usize = 0;
4343

4444
#[inline]

0 commit comments

Comments
 (0)