Skip to content

Commit

Permalink
docs: CopyObject update docs variable reference (#2017)
Browse files Browse the repository at this point in the history
Signed-off-by: Fang Yuan <wojiushifangyuanlove@gmail.com>
  • Loading branch information
767829413 authored Jan 18, 2025
1 parent 5cf2ee7 commit 5b389f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ dstOpts := minio.CopyDestOptions{
}

// Copy object call
uploadInfo, err := minioClient.CopyObject(context.Background(), dst, src)
uploadInfo, err := minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
if err != nil {
fmt.Println(err)
return
Expand Down Expand Up @@ -703,7 +703,7 @@ dstOpts := minio.CopyDestOptions{
}

// Copy object call
_, err = minioClient.CopyObject(context.Background(), dst, src)
_, err = minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
if err != nil {
fmt.Println(err)
return
Expand Down

0 comments on commit 5b389f0

Please # to comment.