Auto merge of #63815 - sebastinez:sebastinez-doc-#63792, r=jonas-schievink

Update occurences of as_slice to as_str in comments

Fix #63792
This commit is contained in:
bors 2019-08-23 12:40:32 +00:00
commit 3def0f3d5b
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ mod prim_slice { }
/// [`len`]: #method.len
///
/// Note: This example shows the internals of `&str`. `unsafe` should not be
/// used to get a string slice under normal circumstances. Use `as_slice`
/// used to get a string slice under normal circumstances. Use `as_str`
/// instead.
#[stable(feature = "rust1", since = "1.0.0")]
mod prim_str { }