diff --git a/content/tokio/tutorial/framing.md b/content/tokio/tutorial/framing.md index 406a78ac..05b43b77 100644 --- a/content/tokio/tutorial/framing.md +++ b/content/tokio/tutorial/framing.md @@ -180,7 +180,7 @@ pub async fn read_frame(&mut self) Let's break this down. The `read_frame` method operates in a loop. First, `self.parse_frame()` is called. This will attempt to parse a redis frame from `self.buffer`. If there is enough data to parse a frame, the frame is returned -to the caller of `read_frame()`.Otherwise, we attempt to read more data from the +to the caller of `read_frame()`. Otherwise, we attempt to read more data from the socket into the buffer. After reading more data, `parse_frame()` is called again. This time, if enough data has been received, parsing may succeed.