Mark examples as ignore, as no_std code doesn't work in doctests

This commit is contained in:
Jan Niehusmann 2023-02-10 09:05:29 +00:00
parent 0767f9b214
commit e6b98c22f5
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ You'll also need to copy the cargo config file from the [repo](https://github.co
The simplest working example, which does nothing except loop forever, is:
```rust
```ignore
#![no_std]
#![no_main]
use rp_pico::entry;

View file

@ -9,7 +9,7 @@
//! # Examples:
//!
//! The following example turns on the onboard LED. Note that most of the logic works through the [rp2040_hal] crate.
//! ```
//! ```ignore
//! #![no_main]
//! use rp_pico::entry;
//! use panic_halt as _;
@ -45,7 +45,7 @@ extern crate cortex_m_rt;
/// It is based on the [cortex_m_rt](https://docs.rs/cortex-m-rt/latest/cortex_m_rt/attr.entry.html) crate.
///
/// # Examples
/// ```
/// ```ignore
/// #![no_std]
/// #![no_main]
/// use rp_pico::entry;