Skip to content

Commit 90423c9

Browse files
committedFeb 6, 2017
Auto merge of #39493 - alexcrichton:beta-next, r=aturon
[beta] std: Fix IntoIter::as_mut_slice's signature This is a backport of #39466 to beta
2 parents 762a037 + 2a935f5 commit 90423c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libcollections/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ impl<T> IntoIter<T> {
19581958
/// assert_eq!(into_iter.next().unwrap(), 'z');
19591959
/// ```
19601960
#[stable(feature = "vec_into_iter_as_slice", since = "1.15.0")]
1961-
pub fn as_mut_slice(&self) -> &mut [T] {
1961+
pub fn as_mut_slice(&mut self) -> &mut [T] {
19621962
unsafe {
19631963
slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
19641964
}

0 commit comments

Comments
 (0)
Please sign in to comment.