Skip to content

Commit

Permalink
Add comments on how to run the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jduan authored and Thomasdezeeuw committed Feb 22, 2020
1 parent 9ac8bc7 commit 0f4003d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tcp_server.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// You can run this example from the root of the mio repo:
// cargo run --example tcp_server --features="os-poll tcp"
use mio::event::Event;
use mio::net::{TcpListener, TcpStream};
use mio::{Events, Interest, Poll, Registry, Token};
Expand Down
2 changes: 2 additions & 0 deletions examples/udp_server.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// You can run this example from the root of the mio repo:
// cargo run --example udp_server --features="os-poll udp"
use log::warn;
use mio::net::UdpSocket;
use mio::{Events, Interest, Poll, Token};
Expand Down

0 comments on commit 0f4003d

Please sign in to comment.