summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-02 15:48:45 -0800
committerRobin Krahl <robin.krahl@ireas.org>2019-01-03 01:58:59 +0100
commit60a976fb7f721b800ba145a9bd5b416c6d3de834 (patch)
tree6b1ab9d0f22be549dac3d7c017e9e4d3aa6841f4
parent9af5d8d894563f34d063035607bc39a5e8239fa7 (diff)
downloadnitrokey-rs-60a976fb7f721b800ba145a9bd5b416c6d3de834.tar.gz
nitrokey-rs-60a976fb7f721b800ba145a9bd5b416c6d3de834.tar.bz2
Fix typo: occured -> occurred
-rw-r--r--src/util.rs8
1 files 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",
};