From 890626b0e18a88cdcd224d4eb8c54ca924003d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 12 Aug 2024 21:19:17 +0300 Subject: [PATCH] Tweak comments --- cpufeatures/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cpufeatures/src/lib.rs b/cpufeatures/src/lib.rs index d919f957..bc4afd9a 100644 --- a/cpufeatures/src/lib.rs +++ b/cpufeatures/src/lib.rs @@ -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! { @@ -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