mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +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:
|
/// **warning**: These spinlocks are not re-entrant, meaning that the following code will cause a deadlock:
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// use rp2040_hal::sio::{Spinlock0, Spinlock};
|
||||||
/// let lock_1 = Spinlock0::claim();
|
/// let lock_1 = Spinlock0::claim();
|
||||||
/// let lock_2 = Spinlock0::claim(); // deadlock here
|
/// let lock_2 = Spinlock0::claim(); // deadlock here
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue