summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAgathe Porte <microjoe@microjoe.org>2020-02-27 13:15:05 +0100
committerAgathe Porte <microjoe@microjoe.org>2020-02-27 13:15:05 +0100
commit5018f151a4d01f7d3a6ba8abe1d48dece17fde80 (patch)
tree123663ed0a8996c64dd0ef72d64200f412298eb4 /src/lib.rs
parentd3e3f24970cfc520f024c27bfbe9b8b59e8a609a (diff)
downloadcharlcd-5018f151a4d01f7d3a6ba8abe1d48dece17fde80.tar.gz
charlcd-5018f151a4d01f7d3a6ba8abe1d48dece17fde80.zip
lib: use back Screen instead of FileScreen in examples
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 5 insertions, 7 deletions
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<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);