Fixing doc/tests

This commit is contained in:
Ryan Kennedy 2020-03-12 12:39:38 -05:00
parent 5ea088b659
commit 2eec3c564c
4 changed files with 16 additions and 4 deletions

View file

@ -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();
/// ```

View file

@ -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();
/// ```

View file

@ -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();
/// ```

View file

@ -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();
/// ```