Skip to content

Commit 5b389f0

Browse files
authored
docs: CopyObject update docs variable reference (#2017)
Signed-off-by: Fang Yuan <[email protected]>
1 parent 5cf2ee7 commit 5b389f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/API.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ dstOpts := minio.CopyDestOptions{
667667
}
668668

669669
// Copy object call
670-
uploadInfo, err := minioClient.CopyObject(context.Background(), dst, src)
670+
uploadInfo, err := minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
671671
if err != nil {
672672
fmt.Println(err)
673673
return
@@ -703,7 +703,7 @@ dstOpts := minio.CopyDestOptions{
703703
}
704704

705705
// Copy object call
706-
_, err = minioClient.CopyObject(context.Background(), dst, src)
706+
_, err = minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
707707
if err != nil {
708708
fmt.Println(err)
709709
return

0 commit comments

Comments
 (0)