未验证 提交 03507a16 编写于 作者: S Sebastian Martinez 提交者: GitHub

Update occurences of as_slice

Update occurences of as_slice to as_str
上级 201e52e5
......@@ -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 { }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册