Skip to content

Commit f23f0bc

Browse files
authored
fix: typos in comments (#15968)
1 parent 8064d27 commit f23f0bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/cext/src/pointers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub(crate) unsafe fn slice_from_ptr<'a, T>(ptr: *const T, len: usize) -> &'a [T]
5656
unsafe { try_slice_from_ptr(ptr, len) }.expect("caller should ensure a valid pointer")
5757
}
5858

59-
/// Casts a const pointer to a reference. Panics is the pointer is null or not aligned.
59+
/// Casts a const pointer to a reference. Panics if the pointer is null or not aligned.
6060
///
6161
/// # Safety
6262
///
@@ -68,7 +68,7 @@ pub(crate) unsafe fn const_ptr_as_ref<'a, T>(ptr: *const T) -> &'a T {
6868
as_ref.unwrap() // we know the pointer is not null, hence we can safely unwrap
6969
}
7070

71-
/// Casts a mut pointer to a mut reference. Panics is the pointer is null or not aligned.
71+
/// Casts a mut pointer to a mut reference. Panics if the pointer is null or not aligned.
7272
///
7373
/// # Safety
7474
///

0 commit comments

Comments
 (0)