Skip to content

Commit

Permalink
Readme typo fix in project (#163)
Browse files Browse the repository at this point in the history
doc: correct typo in method call in readme
  • Loading branch information
chettriyuvraj authored Feb 7, 2024
1 parent 8df2ee4 commit dfea2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/interfaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ There are also other ways of accessing and manipulating data in `bytes.Buffer`,
The first task is to implement unit tests for this type.

You should write unit tests which show at least the following (you can write more if you want!):
* If you make a buffer named `b` containing some bytes, calling `b.Buffer()` returns the same bytes you created it with.
* If you write some extra bytes to that buffer using `b.Write()`, a call to `b.Buffer()` returns both the initial bytes and the extra bytes.
* If you make a buffer named `b` containing some bytes, calling `b.Bytes()` returns the same bytes you created it with.
* If you write some extra bytes to that buffer using `b.Write()`, a call to `b.Bytes()` returns both the initial bytes and the extra bytes.
* If you call `b.Read()` with a slice big enough to read all of the bytes in the buffer, all of the bytes are read.
* If you call `b.Read()` with a slice smaller than the contents of the buffer, some of the bytes are read. If you call it again, the next bytes are read.

Expand Down

0 comments on commit dfea2dc

Please sign in to comment.