Update rustdocs to refer to 256-bit keys everywhere.

This commit is contained in:
David Wilkening 2018-04-14 22:08:11 +02:00 committed by Sergio Benitez
parent 9629b40202
commit 4157c573e8
1 changed files with 3 additions and 3 deletions

View File

@ -310,7 +310,7 @@ impl Config {
/// * **workers**: Integer (16-bit unsigned) /// * **workers**: Integer (16-bit unsigned)
/// * **keep_alive**: Integer or Boolean (false) or String ('none') /// * **keep_alive**: Integer or Boolean (false) or String ('none')
/// * **log**: String /// * **log**: String
/// * **secret_key**: String (192-bit base64) /// * **secret_key**: String (256-bit base64)
/// * **tls**: Table (`certs` (path as String), `key` (path as String)) /// * **tls**: Table (`certs` (path as String), `key` (path as String))
pub(crate) fn set_raw(&mut self, name: &str, val: &Value) -> Result<()> { pub(crate) fn set_raw(&mut self, name: &str, val: &Value) -> Result<()> {
let (id, ok) = (|val| val, |_| Ok(())); let (id, ok) = (|val| val, |_| Ok(()));
@ -450,12 +450,12 @@ impl Config {
self.keep_alive = timeout.into(); self.keep_alive = timeout.into();
} }
/// Sets the `secret_key` in `self` to `key` which must be a 192-bit base64 /// Sets the `secret_key` in `self` to `key` which must be a 256-bit base64
/// encoded string. /// encoded string.
/// ///
/// # Errors /// # Errors
/// ///
/// If `key` is not a valid 192-bit base64 encoded string, returns a /// If `key` is not a valid 256-bit base64 encoded string, returns a
/// `BadType` error. /// `BadType` error.
/// ///
/// # Example /// # Example