difftreelog
doc: outdated panic reason
in: master
1 file changed
crates/jrsonnet-evaluator/src/arr/mod.rsdiffbeforeafterboth99 Self::new(RangeArray::new_inclusive(a, b))99 Self::new(RangeArray::new_inclusive(a, b))100 }100 }101101102 /// # Panics103 /// If step == 0104 #[must_use]102 #[must_use]105 pub fn slice(self, index: Option<i32>, end: Option<i32>, step: Option<NonZeroU32>) -> Self {103 pub fn slice(self, index: Option<i32>, end: Option<i32>, step: Option<NonZeroU32>) -> Self {106 let get_idx = |pos: Option<i32>, len: usize, default| match pos {104 let get_idx = |pos: Option<i32>, len: usize, default| match pos {