Skip to content

Commit

Permalink
docs(rust): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
adeyinkaezra123 authored and Nazmul Idris committed Oct 13, 2023
1 parent 0a7a618 commit 353f4be
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl core::fmt::Debug for ErrorData {
writeln!(f, "Ockam Error [{}] at {}", self.code, self.source_loc)?;
writeln!(f, "--- Details ---")?;
if let Some(c) = &self.cause {
// TODO: iterate the cause chain, print the whole thing outp
// TODO: iterate the cause chain, print the whole thing out
writeln!(f, "- Caused by: {}", c)?;
}
for e in self.payload.iter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Context {
}
}

/// Add an error to the context object with a tokenenizable object.
/// Add an error to the context object with a tokenizable object.
///
/// The object is used for spanning in error messages.
pub(crate) fn error_spanned_by<A: ToTokens, T: Display>(&self, obj: A, msg: T) {
Expand Down
2 changes: 1 addition & 1 deletion implementations/rust/ockam/ockam_node/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub enum ShutdownType {
/// * Signal worker clusters in reverse-creation order to stop
/// * Wait for shutdown ACK hooks from each cluster before moving onto the
/// next
/// * All shutdown-signalled workers may process their entire mailbox,
/// * All shutdown-signaled workers may process their entire mailbox,
/// while not allowing new messages to be queued
///
/// Graceful shutdown procedure will be pre-maturely terminated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ where
Err(err) => error!("processor run loop aborted with error: {:?}", err),
};

// If we reach this point the router has signalled us to shut down
// If we reach this point the router has signaled us to shut down
match processor.shutdown(&mut ctx).await {
Ok(()) => {}
Err(e) => {
Expand Down
2 changes: 1 addition & 1 deletion implementations/rust/ockam/ockam_node/src/router/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl AddressRecord {
pub enum AddressState {
/// The runner is looping in its main body (either handling messages or a manual run-loop)
Running,
/// The runner was signalled to shut-down (running `shutdown()`)
/// The runner was signaled to shut-down (running `shutdown()`)
Stopping,
/// The runner has experienced an error and is waiting for supervisor intervention
#[allow(unused)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub(super) async fn graceful(
/// Implement the immediate shutdown strategy
///
/// When triggering an `immediate` shutdown, all worker handles are
/// signalled to terminate, allowing workers to run their `async fn
/// signaled to terminate, allowing workers to run their `async fn
/// shutdown(...)` hook. However: the router will not wait for them!
/// Messages sent during the shutdown phase may not be delivered and
/// shutdown hooks may be suddenly interrupted by thread-deallocation.
Expand Down

0 comments on commit 353f4be

Please sign in to comment.