Skip to content

Commit

Permalink
Auto merge of rust-lang#63815 - sebastinez:sebastinez-doc-rust-lang#6…
Browse files Browse the repository at this point in the history
…3792, r=jonas-schievink

Update occurences of as_slice to as_str in comments

Fix rust-lang#63792
  • Loading branch information
bors committed Aug 23, 2019
2 parents f834695 + 03507a1 commit 3def0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
Expand Down

0 comments on commit 3def0f3

Please sign in to comment.