diff options
author | wangjingcun <[email protected]> | 2024-11-19 18:29:19 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-19 11:29:19 +0100 |
commit | 8fcd3c148707d8cace2f375e537c30a821ea2516 (patch) | |
tree | 6eac3f18cf9d9a9ae40cb519715aa8ea1b4814d3 | |
parent | 2d4c0c6c8d023f407996d3db5bee70392bb9708f (diff) | |
download | hugo-8fcd3c148707d8cace2f375e537c30a821ea2516.tar.gz hugo-8fcd3c148707d8cace2f375e537c30a821ea2516.zip |
common: Fix some GoDoc typos
-rw-r--r-- | common/constants/constants.go | 2 | ||||
-rw-r--r-- | common/hugio/readers.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/constants/constants.go b/common/constants/constants.go index 48813e79b..b2cb4fb73 100644 --- a/common/constants/constants.go +++ b/common/constants/constants.go @@ -41,7 +41,7 @@ const ( 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 { return name == ResourceTransformationFingerprint } diff --git a/common/hugio/readers.go b/common/hugio/readers.go index 25e327908..c4304c84e 100644 --- a/common/hugio/readers.go +++ b/common/hugio/readers.go @@ -74,13 +74,13 @@ type StringReader interface { 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. func NewReadSeekerNoOpCloserFromBytes(content []byte) readSeekerNopCloser { 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. func NewOpenReadSeekCloser(r ReadSeekCloser) OpenReadSeekCloser { return func() (ReadSeekCloser, error) { |