1
Fork 0

Add note to docs for &str that example is to demo internals only

This commit is contained in:
JessRudder 2016-08-11 18:44:19 -04:00
parent 11f8805887
commit 91a2c25e2e

View file

@ -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")]