Skip to content

Commit

Permalink
Merge pull request torvalds#310 from TheSven73/rust-for-linux-doc-fix
Browse files Browse the repository at this point in the history
rust/kernel/traits: fix rustdoc warnings
  • Loading branch information
ojeda authored May 28, 2021
2 parents 739c1fb + f4f353b commit 6eec399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use alloc::{alloc::AllocError, sync::Arc};

/// Trait which provides a fallible version of `pin()` for pointer types.
///
/// Common pointer types which implement a `pin()` method include [`Box`], [`Arc`] and [`Rc`].
/// Common pointer types which implement a `pin()` method include [`Box`](alloc::boxed::Box) and [`Arc`].
pub trait TryPin<P: Deref> {
/// Constructs a new `Pin<pointer<T>>`. If `T` does not implement [`Unpin`], then data
/// will be pinned in memory and unable to be moved. An error will be returned
Expand Down

0 comments on commit 6eec399

Please sign in to comment.