Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Artoul committed Feb 23, 2019
1 parent 9847f25 commit 261eaab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dbnode/encoding/ostream.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func (os *ostream) WriteByte(v byte) {

// WriteBytes writes a byte slice.
func (os *ostream) WriteBytes(bytes []byte) {
// Make sure we'll have to grow the underlying buffer at most
// one time before we write one by at a time in a loop.
// Make sure we only have to grow the underlying buffer at most
// one time before we write one byte at a time in a loop.
os.ensureCapacityFor(len(bytes))

for i := 0; i < len(bytes); i++ {
Expand Down Expand Up @@ -238,7 +238,7 @@ func (os *ostream) Rawbytes() (checked.Bytes, int) {
return os.checked, os.pos
}

// repairCheckedBytes makes suer that the checked.Bytes wraps the rawBuffer as
// repairCheckedBytes makes sure that the checked.Bytes wraps the rawBuffer as
// they may have fallen out of sync during the writing process.
func (os *ostream) repairCheckedBytes() {
if os.checked != nil {
Expand Down

0 comments on commit 261eaab

Please sign in to comment.