readjust doc strings

This commit is contained in:
Dru Sellers 2017-01-09 13:13:18 -06:00
parent 1c54a511cd
commit d112c171c3
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ impl Config {
/// returned:
///
/// * **address**: String
/// * **port**: Unsigned 16bit Integer
/// * **port**: Integer
/// * **session_key**: String (192-bit base64)
/// * **log**: String
///
@ -120,7 +120,7 @@ impl Config {
}
if port > (u16::max_value() as i64) {
return Err(self.bad_type(name, val, "an integer larger than 65535"))
return Err(self.bad_type(name, val, "a 16-bit unsigned integer"))
}
self.port = port as u16;

View File

@ -33,7 +33,7 @@
//! * **address**: _[string]_ an IP address or host the application will
//! listen on
//! * examples: `"localhost"`, `"0.0.0.0"`, `"1.2.3.4"`
//! * **port**: _[u16]_ a port number to listen on
//! * **port**: _[integer]_ a port number to listen on
//! * examples: `"8000"`, `"80"`, `"4242"`
//! * **log**: _[string]_ how much information to log; one of `"normal"`,
//! `"debug"`, or `"critical"`