Skip to content

Commit

Permalink
Fix typo on write func
Browse files Browse the repository at this point in the history
  • Loading branch information
thatstoasty authored Jun 7, 2024
1 parent db0e219 commit 170b3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gojo/bytes/buffer.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ struct Buffer(
# if not ok:
# m = self.grow(len(src))
# var b = self.buf[m:]
return self.write(src.as_bytes_slice())
return self.write(src.as_bytes())

fn read_from[R: io.Reader](inout self, inout reader: R) -> (Int64, Error):
"""Reads data from r until EOF and appends it to the buffer, growing
Expand Down

0 comments on commit 170b3c3

Please sign in to comment.