Incorrect example in documentation for std::hint::spin_loop #80644
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Hi, I was reading the documentation for
std::hint::spin_loop
when I stumbled upon this example (using the form with no hidden items):I think that the values for AtomicBool might be inverted, because this program never terminates when run in the playground. Should this be fixed or is there something I'm missing?
The text was updated successfully, but these errors were encountered: