Update occurences of as_slice

Update occurences of as_slice to as_str
This commit is contained in:
Sebastian Martinez
2019-08-22 16:16:22 -03:00
committed by GitHub
parent 201e52e5fe
commit 03507a1688
+1 -1
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 { }