Skip to content

Commit

Permalink
Publish: Merge pull request #267 from cplusplus/typo-fix-217
Browse files Browse the repository at this point in the history
Fix typo in example: as_writeable_bytes -> as_writable_bytes e84af77
  • Loading branch information
ericniebler committed Jul 4, 2024
1 parent 92cc5df commit 5d08651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution.html
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ <h4 class="heading settled" data-level="1.3.3" id="example-async-dynamically-siz
<c- n>sender_of</c-><c- o>&lt;</c-><c- n>dynamic_buffer</c-><c- o>></c-> <c- k>auto</c-> <c- n>async_read_array</c-><c- p>(</c-><c- k>auto</c-> <c- n>handle</c-><c- p>)</c-> <c- p>{</c-> <c- c1>// 2</c->
<c- k>return</c-> <c- n>just</c-><c- p>(</c-><c- n>dynamic_buffer</c-><c- p>{})</c-> <c- c1>// 4</c->
<c- o>|</c-> <c- n>let_value</c-><c- p>([</c-><c- n>handle</c-><c- p>]</c-> <c- p>(</c-><c- n>dynamic_buffer</c-><c- o>&amp;</c-> <c- n>buf</c-><c- p>)</c-> <c- p>{</c-> <c- c1>// 5</c->
<c- k>return</c-> <c- n>just</c-><c- p>(</c-><c- n>std</c-><c- o>::</c-><c- n>as_writeable_bytes</c-><c- p>(</c-><c- n>std</c-><c- o>::</c-><c- n>span</c-><c- p>(</c-><c- o>&amp;</c-><c- n>buf</c-><c- p>.</c-><c- n>size</c-><c- p>,</c-> <c- mi>1</c-><c- p>)))</c-> <c- c1>// 6</c->
<c- k>return</c-> <c- n>just</c-><c- p>(</c-><c- n>std</c-><c- o>::</c-><c- n>as_writable_bytes</c-><c- p>(</c-><c- n>std</c-><c- o>::</c-><c- n>span</c-><c- p>(</c-><c- o>&amp;</c-><c- n>buf</c-><c- p>.</c-><c- n>size</c-><c- p>,</c-> <c- mi>1</c-><c- p>)))</c-> <c- c1>// 6</c->
<c- o>|</c-> <c- n>async_read</c-><c- p>(</c-><c- n>handle</c-><c- p>)</c-> <c- c1>// 7</c->
<c- o>|</c-> <c- n>then</c-><c- p>(</c-> <c- c1>// 8</c->
<c- p>[</c-><c- o>&amp;</c-><c- n>buf</c-><c- p>]</c-> <c- p>(</c-><c- n>std</c-><c- o>::</c-><c- b>size_t</c-> <c- n>bytes_read</c-><c- p>)</c-> <c- p>{</c-> <c- c1>// 9</c->
Expand Down

0 comments on commit 5d08651

Please sign in to comment.