This commit is contained in:
Barosl Lee 2016-01-19 03:07:27 +09:00
parent 08886499cf
commit d449ec0195

View File

@ -302,7 +302,7 @@ pub fn as_ptr(&self) -> *const u8 {
/// # Safety
///
/// Callers of this function are responsible that three preconditions are
/// satisifed:
/// satisfied:
///
/// * `begin` must come before `end`.
/// * `begin` and `end` must be byte positions within the string slice.
@ -345,7 +345,7 @@ pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str {
/// # Safety
///
/// Callers of this function are responsible that three preconditions are
/// satisifed:
/// satisfied:
///
/// * `begin` must come before `end`.
/// * `begin` and `end` must be byte positions within the string slice.