Skip to content

Commit e7c7297

Browse files
authored
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`.
1 parent 1ac1453 commit e7c7297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
//! IRQ number = 2, and `Bar`, with IRQ number = 4.
284284
//!
285285
//! ```no_run
286-
//! union Vector {
286+
//! pub union Vector {
287287
//! handler: unsafe extern "C" fn(),
288288
//! reserved: usize,
289289
//! }

0 commit comments

Comments
 (0)