Skip to content

Commit

Permalink
Complete some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed Feb 10, 2017
1 parent b18ee64 commit 917d20f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ func (t *Tag) Save() error {
}

// Write writes whole tag in w.
// It returns the number of bytes written and error. It returns nil as error
// if writing was successful.
func (t Tag) Write(w io.Writer) (n int, err error) {
// Form size of frames
framesSize := t.Size() - tagHeaderSize
Expand All @@ -364,7 +366,8 @@ func (t Tag) Write(w io.Writer) (n int, err error) {
}

// writeAllFrames writes all frames to w and returns
// the number of bytes written and error.
// the number of bytes written and error. It returns nil as error
// if writing was successful.
func (t Tag) writeAllFrames(w io.Writer) (int, error) {
bw := bwpool.Get(w)
defer bwpool.Put(bw)
Expand Down

0 comments on commit 917d20f

Please sign in to comment.