Fix typo
This commit is contained in:
parent
08886499cf
commit
d449ec0195
@ -302,7 +302,7 @@ pub fn as_ptr(&self) -> *const u8 {
|
|||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// Callers of this function are responsible that three preconditions are
|
/// Callers of this function are responsible that three preconditions are
|
||||||
/// satisifed:
|
/// satisfied:
|
||||||
///
|
///
|
||||||
/// * `begin` must come before `end`.
|
/// * `begin` must come before `end`.
|
||||||
/// * `begin` and `end` must be byte positions within the string slice.
|
/// * `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
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// Callers of this function are responsible that three preconditions are
|
/// Callers of this function are responsible that three preconditions are
|
||||||
/// satisifed:
|
/// satisfied:
|
||||||
///
|
///
|
||||||
/// * `begin` must come before `end`.
|
/// * `begin` must come before `end`.
|
||||||
/// * `begin` and `end` must be byte positions within the string slice.
|
/// * `begin` and `end` must be byte positions within the string slice.
|
||||||
|
Loading…
Reference in New Issue
Block a user