Skip to content

Commit

Permalink
[docs] Fix broken link (google#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
leongross authored Sep 18, 2023
1 parent c150d4f commit 1d2240c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ pub unsafe trait FromBytes: FromZeroes {
/// is illegal for `AsBytes` types. Consider reducing the alignment of some
/// fields by using types in the [`byteorder`] module, adding explicit struct
/// fields where those padding bytes would be, or using `#[repr(packed)]`. See
/// the Rust Reference's [page on type layout](type-layout) for more information
/// the Rust Reference's page on [type layout] for more information
/// about type layout and padding.
///
/// # Safety
Expand Down Expand Up @@ -984,7 +984,7 @@ pub unsafe trait FromBytes: FromZeroes {
/// is not currently implemented for, e.g., `Option<&UnsafeCell<_>>`, but it
/// could be one day).
///
/// [type-layout]: https://doc.rust-lang.org/reference/type-layout.html
/// [type layout]: https://doc.rust-lang.org/reference/type-layout.html
/// [Rust Reference]: https://doc.rust-lang.org/reference/type-layout.html
/// [`UnsafeCell`]: core::cell::UnsafeCell
pub unsafe trait AsBytes {
Expand Down

0 comments on commit 1d2240c

Please sign in to comment.