Skip to content

Commit

Permalink
fix: doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Aug 30, 2022
1 parent 0d655d8 commit 2b6f94d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rust/src/storage/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,16 @@ impl S3StorageBackend {
/// ```rust
/// use object_store::aws::AmazonS3Builder;
/// use deltalake::storage::s3::{S3StorageBackend, S3StorageOptions};
/// use std::sync::Arc;
///
/// let inner = AmazonS3Builder::new().with_bucket_name("my-bucket").build()?;
/// let store = S3StorageBackend::try_new(Arc::new(inner), S3StorageOptions::default())?;
/// let inner = AmazonS3Builder::new()
/// .with_region("us-east-1")
/// .with_bucket_name("my-bucket")
/// .with_access_key_id("<access-key-id>")
/// .with_secret_access_key("<secret-access-key>")
/// .build()
/// .unwrap();
/// let store = S3StorageBackend::try_new(Arc::new(inner), S3StorageOptions::default()).unwrap();
/// ```
pub fn try_new(
storage: Arc<DynObjectStore>,
Expand Down

0 comments on commit 2b6f94d

Please sign in to comment.