From 7e67717d92b4953cccc739523a381111d794a8f9 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 28 Aug 2024 05:03:46 +0000 Subject: [PATCH] age: Adjust `scrypt::Identity::set_max_work_factor` docs They are now consistent with `scrypt::Recipient::set_work_factor`. --- age/src/scrypt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/age/src/scrypt.rs b/age/src/scrypt.rs index 0b47f4db..c766fd10 100644 --- a/age/src/scrypt.rs +++ b/age/src/scrypt.rs @@ -196,13 +196,13 @@ impl Identity { } } - /// Sets the maximum accepted scrypt work factor to `2^max_work_factor`. + /// Sets the maximum accepted scrypt work factor to `N = 2^max_log_n`. /// /// This method must be called before [`Self::unwrap_stanza`] to have an effect. /// /// [`Self::unwrap_stanza`]: crate::Identity::unwrap_stanza - pub fn set_max_work_factor(&mut self, max_work_factor: u8) { - self.max_work_factor = max_work_factor; + pub fn set_max_work_factor(&mut self, max_log_n: u8) { + self.max_work_factor = max_log_n; } }