Skip to content

Commit

Permalink
chore(typos): fix typos (#682)
Browse files Browse the repository at this point in the history
* chore(typos): fix typos
  • Loading branch information
stavares843 authored Mar 6, 2023
1 parent 91f12b4 commit a6279c6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ To run the unit tests for a specific crate, from the root of the repository run:
cargo test --package <crate-name> --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 <crate-name> with the name of the crate to test, e.g. `cargo-shuttle`
Expand Down
2 changes: 1 addition & 1 deletion common/src/backends/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions common/src/models/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl From<StatusCode> 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 => {
Expand All @@ -137,7 +137,7 @@ impl From<StatusCode> 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"
},
};

Expand Down
2 changes: 1 addition & 1 deletion common/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions deployer/src/deployment/deploy_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {}
}
Expand Down Expand Up @@ -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 => {}
}
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a6279c6

Please sign in to comment.