all: fix some function names and typos in comment

Change-Id: I8066b22cb87e09fb160de3b8ff2d8fdde6ec3dcf
Reviewed-on: https://go-review.googlesource.com/c/tools/+/675815
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
cuishuang 2025-05-23 15:07:50 +08:00 • committed by Gopher Robot
commit b7d1ec0604

View file

@ -114,7 +114,7 @@ func NewTextResourceContents(uri, mimeType, text string) *ResourceContents {
}
}
// NewTextResourceContents returns a [ResourceContents] containing a byte slice.
// NewBlobResourceContents returns a [ResourceContents] containing a byte slice.
func NewBlobResourceContents(uri, mimeType string, blob []byte) *ResourceContents {
// The only way to distinguish text from blob is a non-nil Blob field.
if blob == nil {