Add note to docs for &str that example is to demo internals only
This commit is contained in:
parent
11f8805887
commit
91a2c25e2e
1 changed files with 3 additions and 0 deletions
|
@ -385,6 +385,9 @@ mod prim_slice { }
|
|||
///
|
||||
/// [`.as_ptr()`]: #method.as_ptr
|
||||
/// [`len()`]: #method.len
|
||||
///
|
||||
/// Note: This example shows the internals of `&str`. `unsafe` should not be
|
||||
/// used to get a string slice under normal circumstances.
|
||||
mod prim_str { }
|
||||
|
||||
#[doc(primitive = "tuple")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue