Skip to content

Commit

Permalink
Closes #224, the Nightly feature name changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Feb 7, 2024
1 parent 5f93477 commit 678c923
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![allow(clippy::uninlined_format_args)]
#![cfg_attr(feature = "nightly_docs", feature(doc_cfg))]
#![cfg_attr(feature = "nightly_portable_simd", feature(portable_simd))]
#![cfg_attr(feature = "nightly_stdsimd", feature(stdsimd))]
#![cfg_attr(feature = "nightly_stdsimd", feature(stdarch_x86_avx512))]

//! This crate gives small utilities for casting between plain data types.
//!
Expand Down Expand Up @@ -252,8 +252,8 @@ pub fn from_bytes_mut<T: NoUninit + AnyBitPattern>(s: &mut [u8]) -> &mut T {

/// Reads from the bytes as if they were a `T`.
///
/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, only sizes
/// must match.
/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`,
/// only sizes must match.
///
/// ## Failure
/// * If the `bytes` length is not equal to `size_of::<T>()`.
Expand All @@ -266,8 +266,8 @@ pub fn try_pod_read_unaligned<T: AnyBitPattern>(

/// Reads the slice into a `T` value.
///
/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, only sizes
/// must match.
/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`,
/// only sizes must match.
///
/// ## Panics
/// * This is like `try_pod_read_unaligned` but will panic on failure.
Expand Down

0 comments on commit 678c923

Please sign in to comment.