From fa4e5679eae9c988fc61cda4e3b7306ce0cd35df Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Wed, 15 Apr 2026 08:44:58 -0700 Subject: [PATCH] fix(error): correct 'occured'/'occurr' typos in Error::Io variant src/error.rs had three spelling errors clustered around the Error enum: * Doc comment on the enum: 'might occurr during' -> 'might occur during' * thiserror error message for Error::Io: 'An error occured during the attempt of performing I/O' -> 'An error occurred ...' * Doc comment on Error::Io: 'An error occured when performing I/O' -> 'An error occurred when performing I/O' The error message is user-visible whenever a tiberius client logs or formats an Io error, so correcting it removes a small but visible spelling mistake from downstream applications. cargo check on the default tokio + rustls feature set stays clean. --- src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index 98bf01b5..a35657f5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,12 +4,12 @@ pub use std::io::ErrorKind as IoErrorKind; use std::{borrow::Cow, convert::Infallible, io}; use thiserror::Error; -/// A unified error enum that contains several errors that might occurr during +/// A unified error enum that contains several errors that might occur during /// the lifecycle of this driver #[derive(Debug, Clone, Error, PartialEq, Eq)] pub enum Error { - #[error("An error occured during the attempt of performing I/O: {}", message)] - /// An error occured when performing I/O to the server. + #[error("An error occurred during the attempt of performing I/O: {}", message)] + /// An error occurred when performing I/O to the server. Io { /// A list specifying general categories of I/O error. kind: IoErrorKind,