From a029b4864b49a9593abc96af4c7a22d4c99e0b6d Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 11 Nov 2018 16:43:02 +0100 Subject: 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. --- cortex-m-rt/src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'cortex-m-rt/src') diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 4d9bf3f..e1b5e45 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -16,19 +16,18 @@ //! //! This crate also provides the following attributes: //! -//! - [`#[entry]`] to declare the entry point of the program -//! - [`#[exception]`] to override an exception handler. If not overridden all exception handlers +//! - `#[entry]` to declare the entry point of the program +//! - `#[exception]` to override an exception handler. If not overridden all exception handlers //! default to an infinite loop. -//! - [`#[pre_init]`] to run code *before* `static` variables are initialized -//! -//! [`#[entry]`]: ../cortex_m_rt_macros/fn.entry.html -//! [`#[exception]`]: ../cortex_m_rt_macros/fn.exception.html -//! [`#[pre_init]`]: ../cortex_m_rt_macros/fn.pre_init.html +//! default to an infinite loop. +//! - `#[pre_init]` to run code *before* `static` variables are initialized //! //! This crate also implements a related attribute called `#[interrupt]`, which allows you //! to define interrupt handlers. However, since which interrupts are available depends on the //! microcontroller in use, this attribute should be re-exported and used from a device crate. //! +//! The documentation for these attributes can be found in the [Reexports](#reexports) section. +//! //! # Requirements //! //! ## `memory.x` -- cgit v1.2.3 From 74976ae36b86f1d99531c8cdb60761f57f844e0e Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 11 Nov 2018 17:12:22 +0100 Subject: remove duplicated line --- cortex-m-rt/src/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'cortex-m-rt/src') diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index e1b5e45..f418e7f 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -19,7 +19,6 @@ //! - `#[entry]` to declare the entry point of the program //! - `#[exception]` to override an exception handler. If not overridden all exception handlers //! default to an infinite loop. -//! default to an infinite loop. //! - `#[pre_init]` to run code *before* `static` variables are initialized //! //! This crate also implements a related attribute called `#[interrupt]`, which allows you -- cgit v1.2.3