From 60a976fb7f721b800ba145a9bd5b416c6d3de834 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Wed, 2 Jan 2019 15:48:45 -0800 Subject: Fix typo: occured -> occurred --- src/util.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util.rs b/src/util.rs index ccec5e6..315cb34 100644 --- a/src/util.rs +++ b/src/util.rs @@ -19,7 +19,7 @@ pub enum CommandError { /// You are not authorized for this command or provided a wrong temporary /// password. NotAuthorized, - /// An error occured when getting or setting the time. + /// An error occurred when getting or setting the time. Timestamp, /// You did not provide a name for the OTP slot. NoName, @@ -29,7 +29,7 @@ pub enum CommandError { UnknownCommand, /// AES decryption failed. AesDecryptionFailed, - /// An unknown error occured. + /// An unknown error occurred. Unknown, /// You passed a string containing a null byte. InvalidString, @@ -117,12 +117,12 @@ impl fmt::Display for CommandError { CommandError::NotAuthorized => { "You are not authorized for this command or provided a wrong temporary password" } - CommandError::Timestamp => "An error occured when getting or setting the time", + CommandError::Timestamp => "An error occurred when getting or setting the time", CommandError::NoName => "You did not provide a name for the OTP slot", CommandError::NotSupported => "This command is not supported by this device", CommandError::UnknownCommand => "This command is unknown", CommandError::AesDecryptionFailed => "AES decryption failed", - CommandError::Unknown => "An unknown error occured", + CommandError::Unknown => "An unknown error occurred", CommandError::InvalidString => "You passed a string containing a null byte", CommandError::InvalidSlot => "The given slot is invalid", }; -- cgit v1.2.3