Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Aug 15, 2024
1 parent 124cca4 commit 1d4b14e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/curp-external-api/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ pub struct AfterSyncCmd<'a, C> {
/// The command
cmd: &'a C,
/// Whether the command needs to be executed in after sync stage
to_exectue: bool,
to_execute: bool,
}

impl<'a, C> AfterSyncCmd<'a, C> {
/// Creates a new `AfterSyncCmd`
#[inline]
pub fn new(cmd: &'a C, to_exectue: bool) -> Self {
Self { cmd, to_exectue }
pub fn new(cmd: &'a C, to_execute: bool) -> Self {
Self { cmd, to_execute }
}

/// Gets the command
Expand All @@ -208,7 +208,7 @@ impl<'a, C> AfterSyncCmd<'a, C> {
#[inline]
#[must_use]
pub fn into_parts(&'a self) -> (&'a C, bool) {
(self.cmd, self.to_exectue)
(self.cmd, self.to_execute)
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/curp/src/client/unary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<C: Command> Unary<C> {
.fetch_add(1, std::sync::atomic::Ordering::Relaxed)
}

/// Validates the member list, returns `true` if all member has been publised
/// Validates the member list, returns `true` if all member has been published
fn validates_members(&self, members: &[Member]) -> bool {
if members.is_empty() {
return false;
Expand Down

0 comments on commit 1d4b14e

Please sign in to comment.