Skip to content

Commit

Permalink
hugio: Rename strigReadSeeker => stringReadSeeker
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 3, 2024
1 parent 3a665dd commit b72f909
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/hugio/readers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ func NewReadSeekerNoOpCloser(r ReadSeeker) ReadSeekCloser {
// NewReadSeekerNoOpCloserFromString uses strings.NewReader to create a new ReadSeekerNoOpCloser
// from the given string.
func NewReadSeekerNoOpCloserFromString(content string) ReadSeekCloser {
return strigReadSeeker{s: content, readSeekerNopCloser: readSeekerNopCloser{strings.NewReader(content)}}
return stringReadSeeker{s: content, readSeekerNopCloser: readSeekerNopCloser{strings.NewReader(content)}}
}

var _ StringReader = (*strigReadSeeker)(nil)
var _ StringReader = (*stringReadSeeker)(nil)

type strigReadSeeker struct {
type stringReadSeeker struct {
s string
readSeekerNopCloser
}

func (s *strigReadSeeker) ReadString() string {
func (s *stringReadSeeker) ReadString() string {
return s.s
}

Expand Down

0 comments on commit b72f909

Please sign in to comment.