Skip to content

Commit 0a86194

Browse files
committed
Fix typos in cortex-m-rt lib.rs
1 parent d5d50a0 commit 0a86194

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
//!
3535
//! This crate expects the user, or some other crate, to provide the memory layout of the target
3636
//! device via a linker script named `memory.x`. This section covers the contents of `memory.x`
37-
//! The `memory.x` file is used by during linking by the `link.x` script provided by this crate.
37+
//! The `memory.x` file is used during linking by the `link.x` script provided by this crate.
3838
//!
3939
//! ### `MEMORY`
4040
//!
4141
//! The linker script must specify the memory available in the device as, at least, two `MEMORY`
4242
//! regions: one named `FLASH` and one named `RAM`. The `.text` and `.rodata` sections of the
4343
//! program will be placed in the `FLASH` region, whereas the `.bss` and `.data` sections, as well
44-
//! as the heap,will be placed in the `RAM` region.
44+
//! as the heap, will be placed in the `RAM` region.
4545
//!
4646
//! ```text
4747
//! /* Linker script for the STM32F103C8T6 */
@@ -444,7 +444,7 @@ use core::arch::global_asm;
444444
use core::fmt;
445445

446446
// HardFault exceptions are bounced through this trampoline which grabs the stack pointer at
447-
// the time of the exception and passes it to th euser's HardFault handler in r0.
447+
// the time of the exception and passes it to the user's HardFault handler in r0.
448448
// Depending on the stack mode in EXC_RETURN, fetches stack from either MSP or PSP.
449449
#[cfg(cortex_m)]
450450
global_asm!(

0 commit comments

Comments
 (0)