Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 12, 2024
1 parent a0e4b21 commit 890626b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cpufeatures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ macro_rules! new {
}
}

/// Initialize underlying storage if needed and get
/// stored value and initialization token.
/// Get stored value and initialization token,
/// initializing underlying storage if needed.
#[inline]
pub fn init_get() -> (InitToken, bool) {
let res = $crate::__unless_target_features! {
Expand All @@ -204,15 +204,13 @@ macro_rules! new {
(InitToken(()), res)
}

/// Initialize underlying storage if needed and get
/// initialization token.
/// Initialize underlying storage if needed and get initialization token.
#[inline]
pub fn init() -> InitToken {
init_get().0
}

/// Initialize underlying storage if needed and get
/// stored value.
/// Initialize underlying storage if needed and get stored value.
#[inline]
pub fn get() -> bool {
init_get().1
Expand Down

0 comments on commit 890626b

Please sign in to comment.