rust-embedded / bare-metal

Abstractions common to microcontrollers
Apache License 2.0
116 stars 17 forks source link

Explain test case, rename anchor const for readability #45

Open chrysn opened 2 years ago

chrysn commented 2 years ago

The rename is primarily because I didn't get what the constant on the first read (and it really gets to you when you review code and find something that's obviously there for a purpose but it's also obviously not actually doing anything).

The comment is added to help readers who are led astray by the earlier warnings to not let the user pick the produced lifetime of a CS (here it's really controlled by the consumer) and miss that the mutex itself is shortlived.