Skip to content

Commit

Permalink
Merge pull request torvalds#602 from rick68/patch-1
Browse files Browse the repository at this point in the history
docs: Fix a typo in intra-doc link
  • Loading branch information
alex authored Dec 30, 2021
2 parents 00d4dbc + 891890b commit 8ca7a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/sync/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl<T: ?Sized> Ref<T> {
/// # Safety
///
/// `ptr` must have been returned by a previous call to [`Ref::into_raw`]. Additionally, it
/// can only be called once for each previous call to [``Ref::into_raw`].
/// can only be called once for each previous call to [`Ref::into_raw`].
pub unsafe fn from_raw(ptr: *const T) -> Self {
// SAFETY: The safety requirement ensures that the pointer is valid.
let align = core::mem::align_of_val(unsafe { &*ptr });
Expand Down

0 comments on commit 8ca7a7f

Please sign in to comment.