Skip to content

Commit 44d4e92

Browse files
committed
nit:docs
1 parent 4c6dc8c commit 44d4e92

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/util/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Contains [StorableBuilder] helper utility.
1+
/// Contains [`StorableBuilder`] helper utility.
22
///
3-
/// [StorableBuilder]: storable_builder::StorableBuilder
3+
/// [`StorableBuilder`]: storable_builder::StorableBuilder
44
pub mod storable_builder;

src/util/storable_builder.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ const CHACHA20_CIPHER_NAME: &'static str = "ChaCha20Poly1305";
1717

1818
impl StorableBuilder {
1919

20-
/// Creates a [`Storable`] that can be serialized and stored as `value` in [PutObjectRequest].
20+
/// Creates a [`Storable`] that can be serialized and stored as `value` in [`PutObjectRequest`].
2121
///
2222
/// Uses ChaCha20 for encrypting the `input` and Poly1305 for generating mac/tag.
2323
///
2424
/// Refer to docs on [`Storable`] for more information.
2525
///
26-
/// [PutObjectRequest]: crate::types::PutObjectRequest
26+
/// [`PutObjectRequest`]: crate::types::PutObjectRequest
2727
pub fn build(&self, input: Vec<u8>, version: i64) -> Storable {
2828
let mut rng = ThreadRng::default();
2929
let mut nonce = [0u8; 12];
@@ -44,10 +44,10 @@ impl StorableBuilder {
4444
}
4545
}
4646

47-
/// Deconstructs the provided [`Storable`] and returns constituent decrypted data and it's
48-
/// corresponding version as stored at the time of [PutObjectRequest].
47+
/// Deconstructs the provided [`Storable`] and returns constituent decrypted data and its
48+
/// corresponding version as stored at the time of [`PutObjectRequest`].
4949
///
50-
/// [PutObjectRequest]: crate::types::PutObjectRequest
50+
/// [`PutObjectRequest`]: crate::types::PutObjectRequest
5151
pub fn deconstruct(&self, mut storable: Storable) -> io::Result<(Vec<u8>, i64)> {
5252
let encryption_metadata = storable.encryption_metadata.unwrap();
5353
let mut cipher = ChaCha20Poly1305::new(&self.data_encryption_key, &encryption_metadata.nonce, &[]);

0 commit comments

Comments
 (0)