Skip to content

Commit 6b3f15c

Browse files
objects: Clarify ExtractContent usage
1 parent 49ee5b4 commit 6b3f15c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openstack/objectstorage/v1/objects/requests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func (opts DownloadOpts) ToObjectDownloadParams() (map[string]string, string, er
115115
}
116116

117117
// Download is a function that retrieves the content and metadata for an object.
118-
// To extract just the content, pass the DownloadResult response to the
119-
// ExtractContent function.
118+
// To extract just the content, call the DownloadResult method ExtractContent,
119+
// after checking DownloadResult's Err field.
120120
func Download(c *gophercloud.ServiceClient, containerName, objectName string, opts DownloadOptsBuilder) (r DownloadResult) {
121121
url := downloadURL(c, containerName, objectName)
122122
h := make(map[string]string)

0 commit comments

Comments
 (0)