1
0
mirror of https://github.com/golang/go synced 2024-11-22 09:34:54 -07:00

mime: add available godoc link

This commit is contained in:
pgxiaolianzi 2024-07-26 19:54:45 +08:00 committed by lxl-renren
parent d8c7230c97
commit 2eb8ced712

View File

@ -226,7 +226,7 @@ func (d *WordDecoder) Decode(word string) (string, error) {
}
// DecodeHeader decodes all encoded-words of the given string. It returns an
// error if and only if WordDecoder.CharsetReader of d returns an error.
// error if and only if [WordDecoder.CharsetReader] of d returns an error.
func (d *WordDecoder) DecodeHeader(header string) (string, error) {
// If there is no encoded-word, returns before creating a buffer.
i := strings.Index(header, "=?")