Update comment in udp-codec example (#222)

This commit is contained in:
Gray Olson 2018-03-12 10:39:32 -07:00 committed by Carl Lerche
parent e6e3c49e0e
commit 95899e007d

View File

@ -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();