Pārlūkot izejas kodu

chore: Fix comment typos (#6346)

Bony Hanter 5 mēneši atpakaļ
vecāks
revīzija
f2b7953451

+ 1 - 1
wen-restart/src/wen_restart.rs

@@ -191,7 +191,7 @@ impl std::error::Error for WenRestartError {}
 
 
 // We need a WenRestartProgressInternalState so we can convert the protobuf written in file
 // We need a WenRestartProgressInternalState so we can convert the protobuf written in file
 // into internal data structure in the initialize function. It should be easily
 // into internal data structure in the initialize function. It should be easily
-// convertable to and from WenRestartProgress protobuf.
+// convertible to and from WenRestartProgress protobuf.
 #[derive(Debug, PartialEq)]
 #[derive(Debug, PartialEq)]
 pub(crate) enum WenRestartProgressInternalState {
 pub(crate) enum WenRestartProgressInternalState {
     Init {
     Init {

+ 1 - 1
zk-sdk/src/encryption/elgamal.rs

@@ -486,7 +486,7 @@ impl ElGamalSecretKey {
         ElGamal::decrypt(self, ciphertext)
         ElGamal::decrypt(self, ciphertext)
     }
     }
 
 
-    /// Decrypts a ciphertext using the ElGamal secret key interpretting the message as type `u32`.
+    /// Decrypts a ciphertext using the ElGamal secret key interpreting the message as type `u32`.
     pub fn decrypt_u32(&self, ciphertext: &ElGamalCiphertext) -> Option<u64> {
     pub fn decrypt_u32(&self, ciphertext: &ElGamalCiphertext) -> Option<u64> {
         ElGamal::decrypt_u32(self, ciphertext)
         ElGamal::decrypt_u32(self, ciphertext)
     }
     }

+ 1 - 1
zk-sdk/src/zk_elgamal_proof_program/instruction.rs

@@ -10,7 +10,7 @@
 //!      dedicated [`context-state`] account.
 //!      dedicated [`context-state`] account.
 //!
 //!
 //! In step 1, the zero-knowledge proof can either be included directly as the instruction data or
 //! In step 1, the zero-knowledge proof can either be included directly as the instruction data or
-//! pre-written to an account. The progrma determines whether the proof is provided as instruction
+//! pre-written to an account. The program determines whether the proof is provided as instruction
 //! data or pre-written to an account by inspecting the length of the data. If the instruction data
 //! data or pre-written to an account by inspecting the length of the data. If the instruction data
 //! is exactly 5 bytes (instruction discriminator + unsigned 32-bit integer), then the program
 //! is exactly 5 bytes (instruction discriminator + unsigned 32-bit integer), then the program
 //! assumes that the first account provided with the instruction contains the zero-knowledge proof
 //! assumes that the first account provided with the instruction contains the zero-knowledge proof