Skip to content

Commit

Permalink
codec: document the line ending used by LinesCodec (#5982)
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang authored Sep 8, 2023
1 parent 9fafe78 commit a6be73e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokio-util/src/codec/lines_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit a6be73e

Please sign in to comment.