diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 51c8a8511..65afe74a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -164,7 +164,7 @@ To run the unit tests for a specific crate, from the root of the repository run: cargo test --package --all-features --lib -- --nocapture ``` -To run the integration tests for a spesific crate (if it has any), from the root of the repository run: +To run the integration tests for a specific crate (if it has any), from the root of the repository run: ```bash # replace with the name of the crate to test, e.g. `cargo-shuttle` diff --git a/common/src/backends/auth.rs b/common/src/backends/auth.rs index f36029211..dc293c24b 100644 --- a/common/src/backends/auth.rs +++ b/common/src/backends/auth.rs @@ -244,7 +244,7 @@ impl Claim { } } -/// Trait to get a public key asyncronously +/// Trait to get a public key asynchronously #[async_trait] pub trait PublicKeyFn: Send + Sync + Clone { type Error: std::error::Error + Send; diff --git a/common/src/models/error.rs b/common/src/models/error.rs index 7b20d5571..05ba44669 100644 --- a/common/src/models/error.rs +++ b/common/src/models/error.rs @@ -115,7 +115,7 @@ impl From for ApiError { fn from(code: StatusCode) -> Self { let message = match code { StatusCode::OK | StatusCode::ACCEPTED | StatusCode::FOUND | StatusCode::SWITCHING_PROTOCOLS => { - unreachable!("we should not have an API error with a successfull status code") + unreachable!("we should not have an API error with a successful status code") } StatusCode::FORBIDDEN => "this request is not allowed", StatusCode::UNAUTHORIZED => { @@ -137,7 +137,7 @@ impl From for ApiError { }, _ => { error!(%code, "got an unexpected status code"); - "an unexpected error occured. Please create a ticket to report this" + "an unexpected error occurred. Please create a ticket to report this" }, }; diff --git a/common/src/models/mod.rs b/common/src/models/mod.rs index 0236c641d..acee3dbe9 100644 --- a/common/src/models/mod.rs +++ b/common/src/models/mod.rs @@ -33,7 +33,7 @@ impl ToJson for reqwest::Response { status_code, StatusCode::OK | StatusCode::SWITCHING_PROTOCOLS ) { - serde_json::from_slice(&full).context("failed to parse a successfull response") + serde_json::from_slice(&full).context("failed to parse a successful response") } else { trace!("parsing response to common error"); let res: error::ApiError = match serde_json::from_slice(&full) { diff --git a/deployer/src/deployment/deploy_layer.rs b/deployer/src/deployment/deploy_layer.rs index c49040768..a500c936d 100644 --- a/deployer/src/deployment/deploy_layer.rs +++ b/deployer/src/deployment/deploy_layer.rs @@ -807,7 +807,7 @@ mod tests { select! { _ = sleep(Duration::from_secs(180)) => { - panic!("states should go into 'Crashed' panicing in bind"); + panic!("states should go into 'Crashed' panicking in bind"); } _ = test => {} } @@ -875,7 +875,7 @@ mod tests { select! { _ = sleep(Duration::from_secs(180)) => { - panic!("states should go into 'Crashed' when panicing in main"); + panic!("states should go into 'Crashed' when panicking in main"); } _ = test => {} } diff --git a/gateway/src/project.rs b/gateway/src/project.rs index da6dc12c7..a5f3474b1 100644 --- a/gateway/src/project.rs +++ b/gateway/src/project.rs @@ -1321,7 +1321,7 @@ where // Stopping a docker containers sends a SIGTERM which will stop the tokio runtime that deployer starts up. // Killing this runtime causes the deployment to enter the `completed` state and it therefore does not // start up again when starting up the project's container. Luckily the kill command allows us to change the - // signal to prevent this from happenning. + // signal to prevent this from happening. // // In some future state when all deployers hadle `SIGTERM` correctly, this can be changed to docker stop // safely.