From 4615c3ea788e409df1923b75699afb1a518f5702 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Nov 2016 16:57:27 -0700 Subject: Touch up the echo examples --- examples/echo.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'examples/echo.rs') diff --git a/examples/echo.rs b/examples/echo.rs index 38eb9044..d46cbd96 100644 --- a/examples/echo.rs +++ b/examples/echo.rs @@ -1,4 +1,18 @@ //! An echo server that just writes back everything that's written to it. +//! +//! If you're on unix you can test this out by in one terminal executing: +//! +//! ```sh +//! $ cargo run --example echo +//! ``` +//! +//! and in another terminal you can run: +//! +//! ```sh +//! $ nc localhost 8080 +//! ``` +//! +//! Each line you type in to the `nc` terminal should be echo'd back to you! extern crate env_logger; extern crate futures; -- cgit v1.2.3