Skip to content

Commit df51298

Browse files
JacoblightningCOM8
andcommitted
update write callback to use const
Co-authored-by: Fabian Sauter <sauter.fabian@mailbox.org>
1 parent 6ed3e32 commit df51298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ You could buffer data in your own way, or write every chunk immediately out to s
547547
The callback signature looks like this.
548548

549549
```c++
550-
bool writeCallback(std::string_view & data, intptr_t userdata);
550+
bool writeCallback(const std::string_view & data, intptr_t userdata);
551551
```
552552
553553
Provide the callback with the WriteCallback options object. Only one write callback may be set.

0 commit comments

Comments
 (0)