mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-02 00:00:11 +02:00
codec: document the line ending used by LinesCodec (#5982)
This commit is contained in:
@@ -6,6 +6,8 @@ use std::{cmp, fmt, io, str, usize};
|
|||||||
|
|
||||||
/// A simple [`Decoder`] and [`Encoder`] implementation that splits up data into lines.
|
/// A simple [`Decoder`] and [`Encoder`] implementation that splits up data into lines.
|
||||||
///
|
///
|
||||||
|
/// This uses the `\n` character as the line ending on all platforms.
|
||||||
|
///
|
||||||
/// [`Decoder`]: crate::codec::Decoder
|
/// [`Decoder`]: crate::codec::Decoder
|
||||||
/// [`Encoder`]: crate::codec::Encoder
|
/// [`Encoder`]: crate::codec::Encoder
|
||||||
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||||
|
|||||||
Reference in New Issue
Block a user