docu(secret-memeory): improve comment in example for Secret

This commit is contained in:
David Niehues
2024-12-18 16:15:18 +01:00
parent a2d7c3aaa6
commit 2cfe703118

View File

@@ -184,7 +184,7 @@ impl SecretMemoryPool {
/// my_secret.randomize();
/// // In case I accidentally print my secret in a debug, it's still not leaked:
/// assert_eq!(format!("{:?}", my_secret), "<SECRET>");
/// // The data will be zeroized either way in the end, but for good measure, let's zeroize anymay.
/// // If you need to, you can zeroize a [Secret] at any time it's necessary:
/// my_secret.zeroize();
/// ```
pub struct Secret<const N: usize> {