Re: [PATCH v5 06/10] rust: sync: atomic: Add the framework of arithmetic operations

Boqun Feng
2025-06-28T03:04:38Z

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
>
>