codec: document the line ending used by LinesCodec (#5982)

This commit is contained in:
Weijia Jiang
2023-09-08 15:59:48 +02:00
committed by GitHub
parent 9fafe783d3
commit a6be73eecb
+2
View File
@@ -6,6 +6,8 @@ use std::{cmp, fmt, io, str, usize};
/// 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
/// [`Encoder`]: crate::codec::Encoder
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]