rust-atomics-and-locks icon indicating copy to clipboard operation
rust-atomics-and-locks copied to clipboard

Include safety comments on unsafe blocks in chapter 3?

Open helixbass opened this issue 1 year ago • 0 comments

Type of error

Minor technical mistake

Location of the error

https://marabos.nl/atomics/memory-ordering.html#fences

Description of the error

In the "Let’s take a look at a more complicated use case of release and acquire fences" example, there are no // safety: ... comments on the unsafe blocks

I was finding the safety comments on other unsafe blocks to be helpful and I know this is considered a best practice so seems worth pointing out their absence here

helixbass avatar Mar 19 '23 15:03 helixbass