Skip to content

Commit b9afdec

Browse files
bors[bot]Tiwalun
andauthored
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 <[email protected]>
2 parents 97ad368 + e7c7297 commit b9afdec

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
@@ -282,7 +282,7 @@
282282
//! IRQ number = 2, and `Bar`, with IRQ number = 4.
283283
//!
284284
//! ```no_run
285-
//! union Vector {
285+
//! pub union Vector {
286286
//! handler: unsafe extern "C" fn(),
287287
//! reserved: usize,
288288
//! }

0 commit comments

Comments
 (0)