Skip to content

Commit 38fa340

Browse files
authored
missed a 'mut'
1 parent 2633b85 commit 38fa340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ pub unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
429429
#[inline]
430430
#[stable(feature = "str_mut_extras", since = "1.20.0")]
431431
pub unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str {
432-
&*(v as *mut [u8] as *mut str)
432+
&mut *(v as *mut [u8] as *mut str)
433433
}
434434

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

0 commit comments

Comments
 (0)