Fixing doc/tests
This commit is contained in:
parent
5ea088b659
commit
2eec3c564c
|
@ -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();
|
||||
/// ```
|
||||
|
|
|
@ -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();
|
||||
/// ```
|
||||
|
|
|
@ -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();
|
||||
/// ```
|
||||
|
|
|
@ -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();
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue