client-api: Add missing periods in docs

This commit is contained in:
Jonas Platte 2021-10-28 21:32:09 +02:00
parent 2fd9553667
commit f634be9838
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -184,12 +184,12 @@ impl fmt::Display for ErrorKind {
} }
} }
/// A Matrix Error without a status code /// A Matrix Error without a status code.
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
#[cfg_attr(test, derive(PartialEq))] #[cfg_attr(test, derive(PartialEq))]
pub struct ErrorBody { pub struct ErrorBody {
/// A value which can be used to handle an error message /// A value which can be used to handle an error message.
#[serde(flatten)] #[serde(flatten)]
pub kind: ErrorKind, pub kind: ErrorKind,
@ -202,13 +202,13 @@ pub struct ErrorBody {
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct Error { pub struct Error {
/// A value which can be used to handle an error message /// A value which can be used to handle an error message.
pub kind: ErrorKind, pub kind: ErrorKind,
/// A human-readable error message, usually a sentence explaining what went wrong. /// A human-readable error message, usually a sentence explaining what went wrong.
pub message: String, pub message: String,
/// The http status code /// The http status code.
pub status_code: http::StatusCode, pub status_code: http::StatusCode,
} }