Re: [PATCH v5 06/10] rust: sync: atomic: Add the framework of arithmetic operations
From: Boqun Feng
Date: Fri Jun 27 2025 - 23:05:01 EST
On Thu, Jun 26, 2025 at 02:39:49PM +0200, Andreas Hindborg wrote:
[...]
> > + // - For calling the atomic_add() function:
> > + // - `self.as_ptr()` is a valid pointer, and per the safety requirement of `AllocAtomic`,
>
> Typo, should be `AllowAtomic`.
>
[...]
> > + // SAFETY:
> > + // - For calling the atomic_fetch_add*() function:
> > + // - `self.as_ptr()` is a valid pointer, and per the safety requirement of `AllocAtomic`,
>
> Typo, should be `AllowAtomic`.
>
Both fixed.
Regards,
Boqun
>
> Best regards,
> Andreas Hindborg
>
>