Skip to content

Commit

Permalink
missed a 'mut'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec authored Sep 17, 2017
1 parent 2633b85 commit 38fa340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ pub unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
#[inline]
#[stable(feature = "str_mut_extras", since = "1.20.0")]
pub unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str {
&*(v as *mut [u8] as *mut str)
&mut *(v as *mut [u8] as *mut str)
}

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 38fa340

Please sign in to comment.