mirror of
https://github.com/golang/go
synced 2024-11-26 03:57:57 -07:00
mime: add available godoc link
Change-Id: Ic5454758c87e9f84a829aed8a72b5ad977878585
GitHub-Last-Rev: 2eb8ced712
GitHub-Pull-Request: golang/go#68605
Reviewed-on: https://go-review.googlesource.com/c/go/+/601295
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
e8776e19b9
commit
c61ff290db
@ -226,7 +226,7 @@ func (d *WordDecoder) Decode(word string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DecodeHeader decodes all encoded-words of the given string. It returns an
|
// 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) {
|
func (d *WordDecoder) DecodeHeader(header string) (string, error) {
|
||||||
// If there is no encoded-word, returns before creating a buffer.
|
// If there is no encoded-word, returns before creating a buffer.
|
||||||
i := strings.Index(header, "=?")
|
i := strings.Index(header, "=?")
|
||||||
|
Loading…
Reference in New Issue
Block a user