Skip to content

Commit

Permalink
update write callback to use const
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Sauter <[email protected]>
  • Loading branch information
Jacoblightning and COM8 committed Oct 12, 2024
1 parent 6ed3e32 commit df51298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit df51298

Please sign in to comment.