diff options
author | 2020-08-29 11:39:16 +0000 | |
---|---|---|
committer | 2020-08-29 11:39:16 +0000 | |
commit | b9afdecc8fff3d2fe2d1a8c2695cc92cfebb3bb9 (patch) | |
tree | c10917cf5037096c818e41c5d9a58d82423f8563 /cortex-m-rt/src | |
parent | 97ad3685d82cab3582602a1d044e80bc3edaaab6 (diff) | |
parent | e7c72973c5a59d3a6245560a4892fd56966debe4 (diff) | |
download | cortex-m-b9afdecc8fff3d2fe2d1a8c2695cc92cfebb3bb9.tar.gz cortex-m-b9afdecc8fff3d2fe2d1a8c2695cc92cfebb3bb9.tar.zst cortex-m-b9afdecc8fff3d2fe2d1a8c2695cc92cfebb3bb9.zip |
Merge #280
280: Make Vector public in interrupt example r=adamgreig a=Tiwalun
If the `Vector`union is not public, the example code leads to a compilation error because `pub static __INTERRUPTS` leaks the private type `Vector`.
Co-authored-by: Dominik Boehi <dominik.boehi@gmail.com>
Diffstat (limited to 'cortex-m-rt/src')
-rw-r--r-- | cortex-m-rt/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 65dee34..524b161 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -282,7 +282,7 @@ //! IRQ number = 2, and `Bar`, with IRQ number = 4. //! //! ```no_run -//! union Vector { +//! pub union Vector { //! handler: unsafe extern "C" fn(), //! reserved: usize, //! } |