aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/src
diff options
context:
space:
mode:
authorGravatar Dominik Boehi <dominik.boehi@gmail.com> 2020-07-22 19:42:36 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-22 19:42:36 +0200
commite7c72973c5a59d3a6245560a4892fd56966debe4 (patch)
treed9f42f87e0de58efafe03c48398620e007eba9ee /cortex-m-rt/src
parent1ac145307c2d3a7668660108bc80484f4c0463ff (diff)
downloadcortex-m-e7c72973c5a59d3a6245560a4892fd56966debe4.tar.gz
cortex-m-e7c72973c5a59d3a6245560a4892fd56966debe4.tar.zst
cortex-m-e7c72973c5a59d3a6245560a4892fd56966debe4.zip
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`.
Diffstat (limited to 'cortex-m-rt/src')
-rw-r--r--cortex-m-rt/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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,
//! }