From 5e317ef1920d23dc1ae167d1d4b29b6a893c8a2d Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 12 Jul 2022 14:39:50 +0100 Subject: [PATCH] Get doctests working on lib.rs (will fix ignored later) --- agb/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agb/src/lib.rs b/agb/src/lib.rs index a45d570c..97f1159c 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -50,7 +50,7 @@ /// /// This will generate something along the lines of the following: /// -/// ``` +/// ```rust,ignore /// // module name comes from the name of the toml file, so `sprites` in this case because it is /// // called `sprites.toml` /// mod sprites { @@ -75,7 +75,7 @@ /// ``` /// /// In `src/main.rs` -/// ``` +/// ```rust,ignore /// mod gfx { /// use agb::display::object::ObjectControl; /// @@ -105,7 +105,7 @@ /// ``` /// /// In `src/main.rs`: -/// ``` +/// ```rust,ignore /// mod gfx { /// use agb::display::background::BackgroundDistributor; /// @@ -139,7 +139,7 @@ macro_rules! include_font { /// Doing this will ensure that `agb` can correctly set up the environment to call your rust function on start up. /// /// # Examples -/// ``` +/// ```no_run,rust /// #![no_std] /// #![no_main] /// @@ -206,7 +206,7 @@ static mut GBASINGLE: single::Singleton = single::Singleton::new(unsafe { G /// /// # Examples /// -/// ``` +/// ```no_run,rust /// #![no_std] /// #![no_main] ///