Skip to content

Commit

Permalink
fix doc string of read_message_from_flat_slice_no_alloc()
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jun 17, 2024
1 parent 3d4b78d commit d0e1036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capnp/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn read_message_from_flat_slice<'a>(
/// The slice is allowed to extend beyond the end of the message. On success, updates `slice` to point
/// to the remaining bytes beyond the end of the message.
///
/// Unlike read_message_from_flat_slice_no_alloc it does not do heap allocation
/// Unlike [read_message_from_flat_slice], it does not do heap allocation.
///
/// ALIGNMENT: If the "unaligned" feature is enabled, then there are no alignment requirements on `slice`.
/// Otherwise, `slice` must be 8-byte aligned (attempts to read the message will trigger errors).
Expand Down

0 comments on commit d0e1036

Please sign in to comment.