Skip to content

Commit

Permalink
fix typos in doc comments (#1)
Browse files Browse the repository at this point in the history
* fix typo in ParsePicture doc comment

changes "inflated" to "inflates"

* fix typo for Marshal doc comment

"MetaDataBlock" -> "MetaDataBlock"
  • Loading branch information
cocoliliace authored Oct 24, 2023
1 parent 2929a8f commit c2bd6c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parsepic.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"image/png"
)

// ParsePicture decodes the image and inflated the Width, Height, ColorDepth, IndexedColorCount fields. This is called automatically by NewFromImageData
// ParsePicture decodes the image and inflates the Width, Height, ColorDepth, IndexedColorCount fields. This is called automatically by NewFromImageData
func (c *MetadataBlockPicture) ParsePicture() error {
switch c.MIME {
case "image/jpeg":
Expand Down
2 changes: 1 addition & 1 deletion picture.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type MetadataBlockPicture struct {
ImageData []byte
}

// Marshal encodes the PictureBlock to a standard FLAC MetaDataBloc to be accepted by go-flac
// Marshal encodes the PictureBlock to a standard FLAC MetaDataBlock to be accepted by go-flac
func (c *MetadataBlockPicture) Marshal() flac.MetaDataBlock {
res := bytes.NewBuffer([]byte{})
res.Write(encodeUint32(uint32(c.PictureType)))
Expand Down

0 comments on commit c2bd6c3

Please sign in to comment.