From f634be9838c743a5181fdffc7562f3b0dc58402f Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 28 Oct 2021 21:32:09 +0200 Subject: [PATCH] client-api: Add missing periods in docs --- crates/ruma-client-api/src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-client-api/src/error.rs b/crates/ruma-client-api/src/error.rs index c32e37bb..bcbfb518 100644 --- a/crates/ruma-client-api/src/error.rs +++ b/crates/ruma-client-api/src/error.rs @@ -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)] #[allow(clippy::exhaustive_structs)] #[cfg_attr(test, derive(PartialEq))] 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)] pub kind: ErrorKind, @@ -202,13 +202,13 @@ pub struct ErrorBody { #[derive(Debug, Clone)] #[allow(clippy::exhaustive_structs)] 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, /// A human-readable error message, usually a sentence explaining what went wrong. pub message: String, - /// The http status code + /// The http status code. pub status_code: http::StatusCode, }