diff --git a/capnp/src/serialize.rs b/capnp/src/serialize.rs index 61258db86..b3303814d 100644 --- a/capnp/src/serialize.rs +++ b/capnp/src/serialize.rs @@ -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).