Added issue number, removed trailing whitespace

This commit is contained in:
rodrimati1992 2020-08-05 14:01:44 -03:00 committed by GitHub
parent 0f7817f99e
commit 750912537d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ use crate::slice::{self, SliceIndex, Split as SliceSplit};
pub mod pattern;
#[unstable(feature = "str_internals", issue = "none")]
#[unstable(feature = "str_internals", issue = "75196")]
#[allow(missing_docs)]
pub mod lossy;
@ -2361,7 +2361,7 @@ impl str {
#[allow(unused_attributes)]
#[allow_internal_unstable(const_fn_union)]
pub const fn as_bytes(&self) -> &[u8] {
// SAFETY: const sound because we transmute two types with the same layout
unsafe { StrOrSlice { str: self }.slice }
}