From e4d99b3a8a98bbbb08140e7c72cbaa16669bc19f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 26 Mar 2026 21:47:47 +0100 Subject: [PATCH] Fix the serialization docs to match the new public C API --- docs/serialization.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/serialization.md b/docs/serialization.md index d087698baa..ad13b0a460 100644 --- a/docs/serialization.md +++ b/docs/serialization.md @@ -153,21 +153,13 @@ The relevant APIs and struct definitions are listed below: // A pm_buffer_t is a simple memory buffer that stores data in a contiguous // block of memory. It is used to store the serialized representation of a // prism tree. -typedef struct { - char *value; - size_t length; - size_t capacity; -} pm_buffer_t; - -// Free the memory held by the buffer. -void pm_buffer_cleanup(pm_buffer_t *); // Parse and serialize the AST represented by the given source to the given // buffer. void pm_serialize_parse(pm_buffer_t *buffer, const uint8_t *source, size_t length, const char *data); ``` -Typically you would use a stack-allocated `pm_buffer_t` and call `pm_serialize_parse`, as in: +Typically you would allocate a `pm_buffer_t` and call `pm_serialize_parse`, as in: ```c void