From e7c72973c5a59d3a6245560a4892fd56966debe4 Mon Sep 17 00:00:00 2001 From: Dominik Boehi Date: Wed, 22 Jul 2020 19:42:36 +0200 Subject: Make Vector public in interrupt example If the `Vector`union is not public, the example code leads to a compilation error because `pub static __INTERRUPTS` leaks the private type `Vector`. --- cortex-m-rt/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 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 47bc1f7..bab2844 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -283,7 +283,7 @@ //! IRQ number = 2, and `Bar`, with IRQ number = 4. //! //! ```no_run -//! union Vector { +//! pub union Vector { //! handler: unsafe extern "C" fn(), //! reserved: usize, //! } -- cgit v1.2.3