aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/async.rs2
-rw-r--r--examples/basic.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/async.rs b/examples/async.rs
index e8e4282..7c8769e 100644
--- a/examples/async.rs
+++ b/examples/async.rs
@@ -1,4 +1,4 @@
-use textmode::Textmode as _;
+use textmode::TextmodeExt as _;
async fn run(tm: &mut textmode::r#async::Textmode) -> std::io::Result<()> {
tm.move_to(5, 5);
diff --git a/examples/basic.rs b/examples/basic.rs
index 150c9b0..a46d449 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -1,7 +1,7 @@
-use textmode::Textmode as _;
+use textmode::TextmodeExt as _;
fn main() {
- let mut tm = textmode::sync::Textmode::new().unwrap();
+ let mut tm = textmode::blocking::Textmode::new().unwrap();
tm.move_to(5, 5);
tm.write_str("foo");