Skip to content

Commit

Permalink
chore: add more comments
Browse files Browse the repository at this point in the history
Signed-off-by: themanforfree <[email protected]>
  • Loading branch information
themanforfree authored and Phoenix500526 committed Feb 18, 2024
1 parent 775056f commit 79bb994
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/xline/src/storage/revision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ impl Revision {
}

/// Decode `Revision` from `&[u8]`
/// # Panics
/// This function panics if there is not enough remaining data in `buf`.
#[must_use]
#[inline]
pub fn decode(mut buf: &[u8]) -> Self {
Expand Down

0 comments on commit 79bb994

Please sign in to comment.