@@ -168,7 +168,7 @@ impl Queue {
168
168
/// # Safety
169
169
///
170
170
/// The caller must ensure that the provided raw pointer is not dangling, that it points at a
171
- /// valid workqueue, and that it remains valid until the end of 'a .
171
+ /// valid workqueue, and that it remains valid until the end of `'a` .
172
172
pub unsafe fn from_raw < ' a > ( ptr : * const bindings:: workqueue_struct ) -> & ' a Queue {
173
173
// SAFETY: The `Queue` type is `#[repr(transparent)]`, so the pointer cast is valid. The
174
174
// caller promises that the pointer is not dangling.
@@ -414,8 +414,8 @@ impl<T: ?Sized, const ID: u64> Work<T, ID> {
414
414
///
415
415
/// # Safety
416
416
///
417
- /// The [`OFFSET`] constant must be the offset of a field in Self of type [`Work<T, ID>`]. The methods on
418
- /// this trait must have exactly the behavior that the definitions given below have.
417
+ /// The [`OFFSET`] constant must be the offset of a field in ` Self` of type [`Work<T, ID>`]. The
418
+ /// methods on this trait must have exactly the behavior that the definitions given below have.
419
419
///
420
420
/// [`Work<T, ID>`]: Work
421
421
/// [`impl_has_work!`]: crate::impl_has_work
@@ -428,7 +428,8 @@ pub unsafe trait HasWork<T, const ID: u64 = 0> {
428
428
429
429
/// Returns the offset of the [`Work<T, ID>`] field.
430
430
///
431
- /// This method exists because the [`OFFSET`] constant cannot be accessed if the type is not Sized.
431
+ /// This method exists because the [`OFFSET`] constant cannot be accessed if the type is not
432
+ /// `Sized`.
432
433
///
433
434
/// [`Work<T, ID>`]: Work
434
435
/// [`OFFSET`]: HasWork::OFFSET
0 commit comments