diff options
author | Gray Olson <gray@grayolson.com> | 2018-03-12 10:39:32 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2018-03-12 10:39:32 -0700 |
commit | 95899e007d1f21b59a2fb35fac4fce01154efe4d (patch) | |
tree | 7460585f938c3aecf1a7df7ff92970603e87f01a /examples/udp-codec.rs | |
parent | e6e3c49e0ed8ad1939dffe6a025030ecf6969721 (diff) |
Update comment in udp-codec example (#222)
Diffstat (limited to 'examples/udp-codec.rs')
-rw-r--r-- | examples/udp-codec.rs | 2 |
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(); |