Skip to content

Commit

Permalink
Update occurences of as_slice
Browse files Browse the repository at this point in the history
Update occurences of as_slice to as_str
  • Loading branch information
sebastinez committed Aug 22, 2019
1 parent 201e52e commit 03507a1
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 03507a1

Please sign in to comment.