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.
2 parents 6ef7031 + 454bcaa commit 3adff18Copy full SHA for 3adff18
src/tensor/npy.rs
@@ -72,7 +72,7 @@ impl Header {
72
let mut parts: Vec<String> = vec![];
73
let mut start_index = 0usize;
74
let mut cnt_parenthesis = 0i64;
75
- for (index, c) in header.chars().enumerate() {
+ for (index, c) in header.char_indices() {
76
match c {
77
'(' => cnt_parenthesis += 1,
78
')' => cnt_parenthesis -= 1,
0 commit comments