summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/tcp_async.rs (renamed from examples/echo.rs)2
-rw-r--r--examples/udp_sync.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/echo.rs b/examples/tcp_async.rs
index 11429e2..50c5ed6 100644
--- a/examples/echo.rs
+++ b/examples/tcp_async.rs
@@ -3,7 +3,7 @@
use futures::StreamExt;
use mini_rust_runtime::executor::Executor;
-use mini_rust_runtime::tcp::TcpListener;
+use mini_rust_runtime::net::tcp::TcpListener;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
fn main() {
diff --git a/examples/udp_sync.rs b/examples/udp_sync.rs
index b33ec35..8187ac0 100644
--- a/examples/udp_sync.rs
+++ b/examples/udp_sync.rs
@@ -1,3 +1,6 @@
+//! Echo example.
+//! Use `nc -u 127.0.0.1 30000` to connect.
+
use std::net::UdpSocket;
fn main() -> std::io::Result<()> {