Skip to content

Commit dcc605f

Browse files
committed
Deprecate remove_axis
1 parent 755c02f commit dcc605f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/impl_methods.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,7 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
15861586
/// Remove array axis `axis` and return the result.
15871587
///
15881588
/// **Panics** if the axis is out of bounds or its length is zero.
1589+
#[deprecated(note="use `.index_axis(Axis(_), 0)` instead", since="0.12.1")]
15891590
pub fn remove_axis(self, axis: Axis) -> ArrayBase<S, D::Smaller>
15901591
where D: RemoveAxis,
15911592
{

0 commit comments

Comments
 (0)