Skip to content

Commit

Permalink
fix blog misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 17, 2024
1 parent 7000a0a commit 40cc210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blog/_posts/2024-09-17-0.20-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async fn write_bytes_chunked(

Now the bytes should transfer much more smoothly,
but we've introduced a new problem: latency.
After sending each `ByteStream.write()` request,
After sending each `ByteSink.write()` request,
we're waiting for the server to send back its response
before we start the next request.
That will likely slow things down considerably!
Expand Down Expand Up @@ -210,11 +210,11 @@ any code change from users.

## implementing streaming methods

To create an instance of a `ByteSinkStreaming` object in Rust,
To create an instance of a `StreamingByteSink` object in Rust,
we need to implement the `byte_sink_streaming::Server` trait:

```rust
impl byte_sink_streaming::Server for ByteStreamImpl {
impl byte_sink_streaming::Server for StreamingByteSinkImpl {
fn write(
&mut self,
params: byte_sink_streaming::WriteParams
Expand Down

0 comments on commit 40cc210

Please sign in to comment.