mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Fixed error in spinlock's documentation
This commit is contained in:
parent
88fbc38f8b
commit
111b355da2
|
@ -150,6 +150,7 @@ macro_rules! impl_spinlock {
|
|||
/// **warning**: These spinlocks are not re-entrant, meaning that the following code will cause a deadlock:
|
||||
///
|
||||
/// ```no_run
|
||||
/// use rp2040_hal::sio::{Spinlock0, Spinlock};
|
||||
/// let lock_1 = Spinlock0::claim();
|
||||
/// let lock_2 = Spinlock0::claim(); // deadlock here
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue