1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-11 13:18:43 +02:00

Exclude imports and other boilerplate from page.

It was getting too long.
This commit is contained in:
Andrew Walbran 2023-02-13 02:22:47 +00:00
parent 100341aa9f
commit ac046661bf

View File

@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// ANCHOR: Example
#![no_main] #![no_main]
#![no_std] #![no_std]
@ -28,6 +27,7 @@ use gd32f1x0_hal::{
prelude::*, prelude::*,
}; };
// ANCHOR: Example
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {
let p = Peripherals::take().unwrap(); let p = Peripherals::take().unwrap();