Skip to content

Commit 467b157

Browse files
committed
Fix typos in documentation for LessSafeKey.
1 parent e610219 commit 467b157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/aead.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl LessSafeKey {
421421
Self { key }
422422
}
423423

424-
/// Like `Key::open_in_place()`, except it accepts an arbitrary nonce.
424+
/// Like [`OpeningKey::open_in_place()`], except it accepts an arbitrary nonce.
425425
#[inline]
426426
pub fn open_in_place<'in_out, A>(
427427
&self,
@@ -435,7 +435,7 @@ impl LessSafeKey {
435435
self.open_within(nonce, aad, in_out, 0..)
436436
}
437437

438-
/// Like `Key::open_within()`, except it accepts an arbitrary nonce.
438+
/// Like [`OpeningKey::open_within()`], except it accepts an arbitrary nonce.
439439
#[inline]
440440
pub fn open_within<'in_out, A>(
441441
&self,
@@ -450,7 +450,7 @@ impl LessSafeKey {
450450
open_within_(&self.key, nonce, aad, in_out, ciphertext_and_tag)
451451
}
452452

453-
/// Like `Key::seal_in_place()`, except it accepts an arbitrary nonce.
453+
/// Like [`SealingKey::seal_in_place()`], except it accepts an arbitrary nonce.
454454
#[inline]
455455
pub fn seal_in_place<A, InOut>(
456456
&self,

0 commit comments

Comments
 (0)