Skip to content

Commit e80b309

Browse files
Merge #700
700: fix docs r=burrbull a=Emilgardis touches on #699 - make it clear how to enable the `take` method - fix minor typo Co-authored-by: Emil Gardström <[email protected]>
2 parents 9024b95 + 7d6c647 commit e80b309

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/generate/generic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait RegisterSpec {
4949

5050
/// Trait implemented by readable registers to enable the `read` method.
5151
///
52-
/// Registers marked with `Writable` can be also `modify`'ed.
52+
/// Registers marked with `Writable` can be also be `modify`'ed.
5353
pub trait Readable: RegisterSpec {
5454
/// Result from a call to `read` and argument to `modify`.
5555
type Reader: From<R<Self>> + core::ops::Deref<Target = R<Self>>;
@@ -59,7 +59,7 @@ pub trait Readable: RegisterSpec {
5959
///
6060
/// This enables the `write`, `write_with_zero` and `reset` methods.
6161
///
62-
/// Registers marked with `Readable` can be also `modify`'ed.
62+
/// Registers marked with `Readable` can be also be `modify`'ed.
6363
pub trait Writable: RegisterSpec {
6464
/// Writer type argument to `write`, et al.
6565
type Writer: From<W<Self>> + core::ops::DerefMut<Target = W<Self>>;

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)