aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-09 02:50:22 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-09 02:50:22 -0500
commit4fc328e1dfb79a2cba14f603a5dd175d6029f30f (patch)
tree7fe35ec3af05933529932c25912b7f3ec20565ec /examples
parentdd845e949ac59e08bf12d0fcac8b4069c5c7645c (diff)
downloadtextmode-4fc328e1dfb79a2cba14f603a5dd175d6029f30f.tar.gz
textmode-4fc328e1dfb79a2cba14f603a5dd175d6029f30f.zip
add an error type
Diffstat (limited to 'examples')
-rw-r--r--examples/async.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async.rs b/examples/async.rs
index af5ccb5..3ff4c92 100644
--- a/examples/async.rs
+++ b/examples/async.rs
@@ -1,6 +1,6 @@
use textmode::Textmode as _;
-async fn run(tm: &mut textmode::Output) -> std::io::Result<()> {
+async fn run(tm: &mut textmode::Output) -> textmode::Result<()> {
tm.move_to(5, 5);
tm.write_str("foo");
smol::Timer::after(std::time::Duration::from_secs(2)).await;