We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.as_slice()
1 parent 91a2c25 commit 758aff7Copy full SHA for 758aff7
src/libstd/primitive_docs.rs
@@ -387,7 +387,8 @@ mod prim_slice { }
387
/// [`len()`]: #method.len
388
///
389
/// Note: This example shows the internals of `&str`. `unsafe` should not be
390
-/// used to get a string slice under normal circumstances.
+/// used to get a string slice under normal circumstances. Use `.as_slice()`
391
+/// instead.
392
mod prim_str { }
393
394
#[doc(primitive = "tuple")]
0 commit comments