From 5018f151a4d01f7d3a6ba8abe1d48dece17fde80 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 27 Feb 2020 13:15:05 +0100 Subject: lib: use back Screen instead of FileScreen in examples --- src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 26b498a..8f1238f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -334,9 +334,7 @@ where } } -// Concrete screen based on a File, to write to the real charlcd driver (or to -// another file). -pub type FileScreen = Screen>; +type FileScreen = Screen>; const DEFAULT_SCREEN_DEV_PATH: &str = "/dev/lcd"; @@ -361,10 +359,10 @@ impl FileScreen { /// ```no_run /// extern crate charlcd; /// - /// use charlcd::FileScreen; + /// use charlcd::Screen; /// /// fn main() -> std::io::Result<()> { - /// let screen = FileScreen::default()?; // the screen is 20x4 in this test + /// let screen = Screen::default()?; // the screen is 20x4 in this test /// /// let width = screen.width()?; /// assert_eq!(width, 20); @@ -396,10 +394,10 @@ impl FileScreen { /// ```no_run /// extern crate charlcd; /// - /// use charlcd::FileScreen; + /// use charlcd::Screen; /// /// fn main() -> std::io::Result<()> { - /// let screen = FileScreen::default()?; // the screen is 20x4 in this test + /// let screen = Screen::default()?; // the screen is 20x4 in this test /// /// let height = screen.height()?; /// assert_eq!(height, 4); -- cgit v1.2.3