Skip to content

Commit 7d4e736

Browse files
committed
make it clear how to enable the take method
1 parent 9024b95 commit 7d4e736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
//! To use a peripheral first you must get an *instance* of the peripheral. All the device
171171
//! peripherals are modeled as singletons (there can only ever be, at most, one instance of any
172172
//! one of them) and the only way to get an instance of them is through the `Peripherals::take`
173-
//! method.
173+
//! method, enabled via the `critical-section` feature on the generated crate.
174174
//!
175175
//! ```ignore
176176
//! let mut peripherals = stm32f30x::Peripherals::take().unwrap();

0 commit comments

Comments
 (0)