summaryrefslogtreecommitdiffstats
path: root/examples/udp-codec.rs
diff options
context:
space:
mode:
authorGray Olson <gray@grayolson.com>2018-03-12 10:39:32 -0700
committerCarl Lerche <me@carllerche.com>2018-03-12 10:39:32 -0700
commit95899e007d1f21b59a2fb35fac4fce01154efe4d (patch)
tree7460585f938c3aecf1a7df7ff92970603e87f01a /examples/udp-codec.rs
parente6e3c49e0ed8ad1939dffe6a025030ecf6969721 (diff)
Update comment in udp-codec example (#222)
Diffstat (limited to 'examples/udp-codec.rs')
-rw-r--r--examples/udp-codec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udp-codec.rs b/examples/udp-codec.rs
index c9b53f17..063083e5 100644
--- a/examples/udp-codec.rs
+++ b/examples/udp-codec.rs
@@ -28,7 +28,7 @@ fn main() {
let b = UdpSocket::bind(&addr).unwrap();
let b_addr = b.local_addr().unwrap();
- // We're parsing each socket with the `LineCodec` defined above, and then we
+ // We're parsing each socket with the `BytesCodec` included in `tokio_io`, and then we
// `split` each codec into the sink/stream halves.
let (a_sink, a_stream) = UdpFramed::new(a, BytesCodec::new()).split();
let (b_sink, b_stream) = UdpFramed::new(b, BytesCodec::new()).split();