From ac046661bf3c90840e0669d114bf4aed10938dbe Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Mon, 13 Feb 2023 02:22:47 +0000 Subject: [PATCH] Exclude imports and other boilerplate from page. It was getting too long. --- src/bare-metal/microcontrollers/examples/src/bin/typestate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bare-metal/microcontrollers/examples/src/bin/typestate.rs b/src/bare-metal/microcontrollers/examples/src/bin/typestate.rs index 7a37fa0a..962aaf19 100644 --- a/src/bare-metal/microcontrollers/examples/src/bin/typestate.rs +++ b/src/bare-metal/microcontrollers/examples/src/bin/typestate.rs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// ANCHOR: Example #![no_main] #![no_std] @@ -28,6 +27,7 @@ use gd32f1x0_hal::{ prelude::*, }; +// ANCHOR: Example #[entry] fn main() -> ! { let p = Peripherals::take().unwrap();