small fix to str doc example
This commit is contained in:
parent
d4ffaf6f83
commit
4e2ec9a178
@ -333,7 +333,7 @@ mod prim_slice { }
|
||||
/// let ptr = story.as_ptr();
|
||||
/// let len = story.len();
|
||||
///
|
||||
/// // story has thirteen bytes
|
||||
/// // story has nineteen bytes
|
||||
/// assert_eq!(19, len);
|
||||
///
|
||||
/// // We can re-build a str out of ptr and len. This is all unsafe becuase
|
||||
|
Loading…
Reference in New Issue
Block a user