File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2449,15 +2449,15 @@ where
2449
2449
/// Decreases the length of `axis` by one.
2450
2450
///
2451
2451
/// ***Panics** if `axis` or `index` is out of bounds.
2452
- pub fn shift_remove_index ( & mut self , axis : Axis , index : usize )
2452
+ pub fn remove_index ( & mut self , axis : Axis , index : usize )
2453
2453
where
2454
2454
S : DataOwned + DataMut ,
2455
2455
{
2456
- // TODO: It's possible to choose to shift the elment to the front or the back here,
2456
+ // TODO: It's possible to choose to shift the element to the front or the back here,
2457
2457
// whichever is closer.
2458
2458
let ( _, mut tail) = self . view_mut ( ) . split_at ( axis, index) ;
2459
- // shift elements to the back
2460
- // use swap to keep all elements initialized (as required by owned storage)
2459
+ // shift elements to the front
2460
+ // use swapping to keep all elements initialized (as required by owned storage)
2461
2461
Zip :: from ( tail. lanes_mut ( axis) ) . for_each ( |mut lane| {
2462
2462
let mut lane_iter = lane. iter_mut ( ) ;
2463
2463
let mut dst = if let Some ( dst) = lane_iter. next ( ) { dst } else { return } ;
You can’t perform that action at this time.
0 commit comments