Skip to content

Commit a029b48

Browse files
committed
change attribute doc links
to point to the "Reexports" section. The older links don't work correctly on docs.rs. The "Reexports" section always has valid links to the documentation of each attribute.
1 parent 4a79231 commit a029b48

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,18 @@
1616
//!
1717
//! This crate also provides the following attributes:
1818
//!
19-
//! - [`#[entry]`] to declare the entry point of the program
20-
//! - [`#[exception]`] to override an exception handler. If not overridden all exception handlers
19+
//! - `#[entry]` to declare the entry point of the program
20+
//! - `#[exception]` to override an exception handler. If not overridden all exception handlers
2121
//! default to an infinite loop.
22-
//! - [`#[pre_init]`] to run code *before* `static` variables are initialized
23-
//!
24-
//! [`#[entry]`]: ../cortex_m_rt_macros/fn.entry.html
25-
//! [`#[exception]`]: ../cortex_m_rt_macros/fn.exception.html
26-
//! [`#[pre_init]`]: ../cortex_m_rt_macros/fn.pre_init.html
22+
//! default to an infinite loop.
23+
//! - `#[pre_init]` to run code *before* `static` variables are initialized
2724
//!
2825
//! This crate also implements a related attribute called `#[interrupt]`, which allows you
2926
//! to define interrupt handlers. However, since which interrupts are available depends on the
3027
//! microcontroller in use, this attribute should be re-exported and used from a device crate.
3128
//!
29+
//! The documentation for these attributes can be found in the [Reexports](#reexports) section.
30+
//!
3231
//! # Requirements
3332
//!
3433
//! ## `memory.x`

0 commit comments

Comments
 (0)