diff options
author | Agathe Porte <microjoe@microjoe.org> | 2020-02-27 13:15:05 +0100 |
---|---|---|
committer | Agathe Porte <microjoe@microjoe.org> | 2020-02-27 13:15:05 +0100 |
commit | 5018f151a4d01f7d3a6ba8abe1d48dece17fde80 (patch) | |
tree | 123663ed0a8996c64dd0ef72d64200f412298eb4 /src | |
parent | d3e3f24970cfc520f024c27bfbe9b8b59e8a609a (diff) | |
download | charlcd-5018f151a4d01f7d3a6ba8abe1d48dece17fde80.tar.gz charlcd-5018f151a4d01f7d3a6ba8abe1d48dece17fde80.zip |
lib: use back Screen instead of FileScreen in examples
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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<BufWriter<File>>; +type FileScreen = Screen<BufWriter<File>>; 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); |