From df5129832f3cb727fc96afd1db305b0489887784 Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 10 Oct 2024 16:10:54 -0400 Subject: [PATCH] update write callback to use const Co-authored-by: Fabian Sauter --- advanced-usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced-usage.md b/advanced-usage.md index 203d944..31f2710 100644 --- a/advanced-usage.md +++ b/advanced-usage.md @@ -547,7 +547,7 @@ You could buffer data in your own way, or write every chunk immediately out to s The callback signature looks like this. ```c++ - bool writeCallback(std::string_view & data, intptr_t userdata); + bool writeCallback(const std::string_view & data, intptr_t userdata); ``` Provide the callback with the WriteCallback options object. Only one write callback may be set.