From aebf7f88e587f9734d49a5680071590ffb7063ac Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 17 Sep 2018 19:37:59 -0700 Subject: [PATCH] Various spelling fixes --- src/bank.rs | 2 +- src/budget_contract.rs | 6 +++--- src/instruction.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bank.rs b/src/bank.rs index 668b1c5d43..55df37de70 100644 --- a/src/bank.rs +++ b/src/bank.rs @@ -343,7 +343,7 @@ impl Bank { /// Execute a transaction. /// This method calls the contract's process_transaction method and verifies that the result of /// the contract does not violate the bank's accounting rules. - /// The accounts are commited back to the bank only if this function returns Ok(_). + /// The accounts are committed back to the bank only if this function returns Ok(_). fn execute_transaction(tx: Transaction, accounts: &mut [Account]) -> Result { let pre_total: i64 = accounts.iter().map(|a| a.tokens).sum(); let pre_data: Vec<_> = accounts diff --git a/src/budget_contract.rs b/src/budget_contract.rs index d5a341a744..b62cc03516 100644 --- a/src/budget_contract.rs +++ b/src/budget_contract.rs @@ -127,7 +127,7 @@ impl BudgetContract { } if accounts[0].tokens < contract.tokens { - trace!("insufficent funds"); + trace!("insufficient funds"); return Err(BudgetError::InsufficientFunds(tx.keys[0])); } else { accounts[0].tokens -= contract.tokens; @@ -175,7 +175,7 @@ impl BudgetContract { Err(BudgetError::UninitializedContract(tx.keys[1])) } else { state.apply_timestamp(tx, accounts, *dt)?; - trace!("apply timestamp commited"); + trace!("apply timestamp committed"); state.serialize(&mut accounts[1].userdata); Ok(()) } @@ -191,7 +191,7 @@ impl BudgetContract { } else { trace!("apply signature"); state.apply_signature(tx, *signature, accounts)?; - trace!("apply signature commited"); + trace!("apply signature committed"); state.serialize(&mut accounts[1].userdata); Ok(()) } diff --git a/src/instruction.rs b/src/instruction.rs index a7b3c3b596..98e84622e9 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -53,7 +53,7 @@ pub struct Vote { /// An instruction to progress the smart contract. #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)] pub enum Instruction { - /// Declare and instanstansiate `Contract`. + /// Declare and instantiate `Contract`. NewContract(Contract), /// Tell a payment plan acknowledge the given `DateTime` has past.