Skip to content

Commit

Permalink
blob/s3blob: fix the 'awssdk' argument examples
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucian committed Jun 14, 2023
1 parent 2e4fad4 commit 098177a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blob/s3blob/example_test.go
Expand Up @@ -84,7 +84,7 @@ func Example_openBucketFromURL() {
defer bucket.Close()

// Forcing AWS SDK V2.
bucket, err = blob.OpenBucket(ctx, "s3://my-bucket?region=us-west-1&awssdk=2")
bucket, err = blob.OpenBucket(ctx, "s3://my-bucket?region=us-west-1&awssdk=v2")
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion blob/s3blob/s3blob_test.go
Expand Up @@ -465,7 +465,7 @@ func TestOpenBucketFromURL(t *testing.T) {
// OK, setting both profile and region.
{"s3://mybucket?profile=main&region=us-west-1", false},
// OK, use V2.
{"s3://mybucket?awssdk=2", false},
{"s3://mybucket?awssdk=v2", false},
// Invalid parameter together with a valid one.
{"s3://mybucket?profile=main&param=value", true},
// Invalid parameter.
Expand Down
2 changes: 1 addition & 1 deletion internal/website/data/examples.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 098177a

Please sign in to comment.