File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1296,7 +1296,7 @@ impl<T: PartialEq> Vec<T> {
1296
1296
pub fn dedup ( & mut self ) {
1297
1297
self . dedup_by ( |a, b| a == b)
1298
1298
}
1299
-
1299
+
1300
1300
/// Removes the first instance of `item` from the vector if the item exists.
1301
1301
///
1302
1302
/// # Examples
@@ -1308,13 +1308,12 @@ impl<T: PartialEq> Vec<T> {
1308
1308
///
1309
1309
/// assert_eq!(vec, vec![2, 3, 1]);
1310
1310
/// ```
1311
- #[ unstable( feature = "vec_remove_item" , reason = "recently added" , issue = "38143 " ) ]
1311
+ #[ unstable( feature = "vec_remove_item" , reason = "recently added" , issue = "40062 " ) ]
1312
1312
pub fn remove_item ( & mut self , item : & T ) -> Option < T > {
1313
1313
let pos = match self . iter ( ) . position ( |x| * x == * item) {
1314
1314
Some ( x) => x,
1315
1315
None => return None ,
1316
1316
} ;
1317
-
1318
1317
Some ( self . remove ( pos) )
1319
1318
}
1320
1319
}
You can’t perform that action at this time.
0 commit comments