From 03507a1688e4ce5c3bf99973addd75beb1bc9ec0 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez <7912302+sebastinez@users.noreply.github.com> Date: Thu, 22 Aug 2019 16:16:22 -0300 Subject: [PATCH] Update occurences of as_slice Update occurences of as_slice to as_str --- src/libstd/primitive_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index d9a3da66a67..45816ffd229 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -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 { }