Fixed error in spinlock's documentation

This commit is contained in:
Victor Koenders 2021-11-24 11:59:43 +01:00
parent 88fbc38f8b
commit 111b355da2
No known key found for this signature in database
GPG key ID: 2E441540865B8A1C

View file

@ -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
/// ```