summaryrefslogtreecommitdiffstats
path: root/examples/echo.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-11-02 16:57:27 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-11-02 16:57:27 -0700
commit4615c3ea788e409df1923b75699afb1a518f5702 (patch)
treead301b45545a716ad3f18805ae39a060ba23dcb8 /examples/echo.rs
parent237bcead7a923e048e4cc27e04d68dc60af69fb0 (diff)
Touch up the echo examples
Diffstat (limited to 'examples/echo.rs')
-rw-r--r--examples/echo.rs14
1 files changed, 14 insertions, 0 deletions
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;