mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-22 20:12:17 +00:00
common: Fix some GoDoc typos
This commit is contained in:
parent
2d4c0c6c8d
commit
8fcd3c1487
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ const (
|
||||||
ResourceTransformationFingerprint = "fingerprint"
|
ResourceTransformationFingerprint = "fingerprint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsResourceTransformationLinkChange returns whether the given name is a resource transformation that changes the permalink based on the content.
|
// IsResourceTransformationPermalinkHash returns whether the given name is a resource transformation that changes the permalink based on the content.
|
||||||
func IsResourceTransformationPermalinkHash(name string) bool {
|
func IsResourceTransformationPermalinkHash(name string) bool {
|
||||||
return name == ResourceTransformationFingerprint
|
return name == ResourceTransformationFingerprint
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,13 +74,13 @@ type StringReader interface {
|
||||||
ReadString() string
|
ReadString() string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewReadSeekerNoOpCloserFromString uses strings.NewReader to create a new ReadSeekerNoOpCloser
|
// NewReadSeekerNoOpCloserFromBytes uses bytes.NewReader to create a new ReadSeekerNoOpCloser
|
||||||
// from the given bytes slice.
|
// from the given bytes slice.
|
||||||
func NewReadSeekerNoOpCloserFromBytes(content []byte) readSeekerNopCloser {
|
func NewReadSeekerNoOpCloserFromBytes(content []byte) readSeekerNopCloser {
|
||||||
return readSeekerNopCloser{bytes.NewReader(content)}
|
return readSeekerNopCloser{bytes.NewReader(content)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewReadSeekCloser creates a new ReadSeekCloser from the given ReadSeeker.
|
// NewOpenReadSeekCloser creates a new ReadSeekCloser from the given ReadSeeker.
|
||||||
// The ReadSeeker will be seeked to the beginning before returned.
|
// The ReadSeeker will be seeked to the beginning before returned.
|
||||||
func NewOpenReadSeekCloser(r ReadSeekCloser) OpenReadSeekCloser {
|
func NewOpenReadSeekCloser(r ReadSeekCloser) OpenReadSeekCloser {
|
||||||
return func() (ReadSeekCloser, error) {
|
return func() (ReadSeekCloser, error) {
|
||||||
|
|
Loading…
Reference in a new issue