From f69fa7f37078ce445424387918bc6bebe5077a17 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Thu, 4 Jul 2024 16:42:09 +0300 Subject: [PATCH] docs: Fix typos Signed-off-by: Awiteb --- Cargo.toml | 2 +- crates/oxidetalis/src/errors.rs | 2 +- crates/oxidetalis_core/src/cipher.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 57e7d68..998b875 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ oxidetalis_core = { path = "crates/oxidetalis_core" } oxidetalis_config = { path = "crates/oxidetalis_config" } oxidetalis_migrations = { path = "crates/oxidetalis_migrations" } oxidetalis_entities = { path = "crates/oxidetalis_entities" } -# Shered dependencies +# Shared dependencies base58 = "0.2.0" serde = "1.0.203" thiserror = "1.0.61" diff --git a/crates/oxidetalis/src/errors.rs b/crates/oxidetalis/src/errors.rs index 8c3105f..95f6b2f 100644 --- a/crates/oxidetalis/src/errors.rs +++ b/crates/oxidetalis/src/errors.rs @@ -49,7 +49,7 @@ pub enum ApiError { /// The entered public key is already registered (400 Bad Request) #[error("The entered public key is already registered")] DuplicatedUser, - /// The user enterd tow different public keys + /// The user entered two different public keys /// one in the header and other in the request body /// (400 Bad Request) #[error("You entered two different public keys")] diff --git a/crates/oxidetalis_core/src/cipher.rs b/crates/oxidetalis_core/src/cipher.rs index 2c7067b..4ed05d0 100644 --- a/crates/oxidetalis_core/src/cipher.rs +++ b/crates/oxidetalis_core/src/cipher.rs @@ -203,7 +203,7 @@ impl K256Secret { /// Sign a data with the shared secret. /// - /// The signature is exiplained in the OTMP specification. + /// The signature is explained in the OTMP specification. #[logcall] pub fn sign(&self, data: &[u8], sign_to: &CorePublicKey) -> CoreSignature { Self::sign_with_shared_secret(data, &self.shared_secret(sign_to))