]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #63815 - sebastinez:sebastinez-doc-#63792, r=jonas-schievink
authorbors <bors@rust-lang.org>
Fri, 23 Aug 2019 12:40:32 +0000 (12:40 +0000)
committerbors <bors@rust-lang.org>
Fri, 23 Aug 2019 12:40:32 +0000 (12:40 +0000)
Update occurences of as_slice to as_str in comments

Fix #63792

src/libstd/primitive_docs.rs

index d9a3da66a67868096011e29eac00e9328109c2f0..45816ffd229f0261a591a58c328607ede4d4ca47 100644 (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 { }