Skip to content

Commit 3def0f3

Browse files
committed
Auto merge of #63815 - sebastinez:sebastinez-doc-#63792, r=jonas-schievink
Update occurences of as_slice to as_str in comments Fix #63792
2 parents f834695 + 03507a1 commit 3def0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/primitive_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ mod prim_slice { }
655655
/// [`len`]: #method.len
656656
///
657657
/// Note: This example shows the internals of `&str`. `unsafe` should not be
658-
/// used to get a string slice under normal circumstances. Use `as_slice`
658+
/// used to get a string slice under normal circumstances. Use `as_str`
659659
/// instead.
660660
#[stable(feature = "rust1", since = "1.0.0")]
661661
mod prim_str { }

0 commit comments

Comments
 (0)