From d0e10368a023deaa33b9190c2017708f8088222d Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Mon, 17 Jun 2024 17:19:20 -0400 Subject: [PATCH] fix doc string of read_message_from_flat_slice_no_alloc() --- capnp/src/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).