summaryrefslogtreecommitdiffstats
path: root/examples/udp-codec.rs
diff options
context:
space:
mode:
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();