Skip to content

Commit 9ca65bf

Browse files
authored
fix: code comments errors (#3180)
## Motivation While reviewing documentation found several errors in comments
1 parent b42e7a9 commit 9ca65bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/matching-engine/src/contract.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ impl MatchingEngineContract {
471471
match nature {
472472
OrderNature::Bid => {
473473
// The order offers to buy token1 at price price_insert
474-
// * When the old order was created fill of token1 were commited
474+
// * When the old order was created fill of token1 were committed
475475
// by the seller.
476476
// * When the new order is created price_insert * fill of token0
477477
// were committed by the buyer.
@@ -496,9 +496,9 @@ impl MatchingEngineContract {
496496
OrderNature::Ask => {
497497
// The order offers to sell token1 at price price_insert
498498
// * When the old order was created, price_level * fill of token0
499-
// had to be commited by the buyer.
499+
// had to be committed by the buyer.
500500
// * When the new order is created, fill of token1 have to
501-
// be commited by the seller.
501+
// be committed by the seller.
502502
// The result is that
503503
// * price_insert * fill have to be sent to the seller
504504
// * the buyer receives

linera-views/src/backends/dual.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub enum StoreInUse {
3333
Second,
3434
}
3535

36-
/// The trait for a (static) root key assignement.
36+
/// The trait for a (static) root key assignment.
3737
pub trait DualStoreRootKeyAssignment {
3838
/// Obtains the store assigned to this root key.
3939
fn assigned_store(root_key: &[u8]) -> Result<StoreInUse, bcs::Error>;
@@ -48,7 +48,7 @@ pub struct DualStore<S1, S2, A> {
4848
second_store: S2,
4949
/// Which store is currently in use given the root key. (The root key in the other store will be set arbitrarily.)
5050
store_in_use: StoreInUse,
51-
/// Marker for the static root key assignement.
51+
/// Marker for the static root key assignment.
5252
_marker: std::marker::PhantomData<A>,
5353
}
5454

0 commit comments

Comments
 (0)