diff --git a/src/writers/graphics_640x480x16.rs b/src/writers/graphics_640x480x16.rs index 5a200f3..ab47b41 100644 --- a/src/writers/graphics_640x480x16.rs +++ b/src/writers/graphics_640x480x16.rs @@ -15,8 +15,11 @@ static PLANES: &'static [Plane] = &[Plane::Plane0, Plane::Plane1, Plane::Plane2, /// /// Basic usage: /// -/// ``` +/// ```no_run +/// use vga::Graphics640x480x16; +/// /// let graphics_mode = Graphics640x480x16::new(); +/// /// graphics_mode.set_mode(); /// graphics_mode.clear_screen(); /// ``` diff --git a/src/writers/text_40x25.rs b/src/writers/text_40x25.rs index 703d328..c800fde 100644 --- a/src/writers/text_40x25.rs +++ b/src/writers/text_40x25.rs @@ -20,8 +20,11 @@ static BLANK_CHARACTER: ScreenCharacter = ScreenCharacter { /// /// Basic usage: /// -/// ``` +/// ```no_run +/// use vga::Text40x25; +/// /// let text_mode = Text40x25::new(); +/// /// text_mode.set_mode(); /// text_mode.clear_screen(); /// ``` diff --git a/src/writers/text_40x50.rs b/src/writers/text_40x50.rs index c60ae58..797b51b 100644 --- a/src/writers/text_40x50.rs +++ b/src/writers/text_40x50.rs @@ -20,8 +20,11 @@ static BLANK_CHARACTER: ScreenCharacter = ScreenCharacter { /// /// Basic usage: /// -/// ``` +/// ```no_run +/// use vga::Text40x50; +/// /// let text_mode = Text40x50::new(); +/// /// text_mode.set_mode(); /// text_mode.clear_screen(); /// ``` diff --git a/src/writers/text_80x25.rs b/src/writers/text_80x25.rs index b3edf61..fc1e1da 100644 --- a/src/writers/text_80x25.rs +++ b/src/writers/text_80x25.rs @@ -20,8 +20,11 @@ static BLANK_CHARACTER: ScreenCharacter = ScreenCharacter { /// /// Basic usage: /// -/// ``` +/// ```no_run +/// use vga::Text80x25; +/// /// let text_mode = Text80x25::new(); +/// /// text_mode.set_mode(); /// text_mode.clear_screen(); /// ```