diff --git a/rustainers/examples/compose_custom_images.rs b/rustainers/examples/compose_custom_images.rs index d8622fc..5f61889 100644 --- a/rustainers/examples/compose_custom_images.rs +++ b/rustainers/examples/compose_custom_images.rs @@ -40,7 +40,7 @@ struct ComposeNginx { impl ComposeNginx { async fn new() -> Self { let temp_dir = TemporaryDirectory::with_files( - "componse-nginx", + "compose-nginx", [TemporaryFile::builder() .with_path("docker-compose.yaml") .with_content( diff --git a/rustainers/src/compose/images/doc.md b/rustainers/src/compose/images/doc.md index 4604b01..0b94249 100644 --- a/rustainers/src/compose/images/doc.md +++ b/rustainers/src/compose/images/doc.md @@ -55,9 +55,9 @@ struct ComposeNginx { impl ComposeNginx { async fn new() -> Self { - // Create a temporary directory what will be removed when the containers stop + // Create a temporary directory that will be removed when the containers stop let temp_dir = TemporaryDirectory::with_files( - "componse-nginx", // a name prefix + "compose-nginx", // a name prefix [ // One docker-compose.yaml file TemporaryFile::builder() diff --git a/rustainers/src/compose/temp_dir.rs b/rustainers/src/compose/temp_dir.rs index 9640ed1..cb7e6ea 100644 --- a/rustainers/src/compose/temp_dir.rs +++ b/rustainers/src/compose/temp_dir.rs @@ -47,7 +47,7 @@ pub struct TemporaryFile { /// # use rustainers::compose::{TemporaryDirectory, TemporaryFile}; /// # async fn build() { /// let temp_dir = TemporaryDirectory::with_files( -/// "componse-nginx", +/// "compose-nginx", /// [TemporaryFile::builder() /// .with_path("docker-compose.yaml") /// .with_content(r#"..."#) diff --git a/rustainers/src/container/wait_condition.rs b/rustainers/src/container/wait_condition.rs index cc97af7..48878fb 100644 --- a/rustainers/src/container/wait_condition.rs +++ b/rustainers/src/container/wait_condition.rs @@ -63,13 +63,13 @@ impl WaitStrategy { Self::None } - /// Wait with image healt check + /// Wait with image health check #[must_use] pub fn health_check() -> Self { Self::HealthCheck } - /// Wait with image healt check + /// Wait with image health check #[must_use] pub fn custom_health_check(health_check: HealthCheck) -> Self { Self::CustomHealthCheck(health_check) diff --git a/rustainers/src/runner/error.rs b/rustainers/src/runner/error.rs index 36c4002..edf7336 100644 --- a/rustainers/src/runner/error.rs +++ b/rustainers/src/runner/error.rs @@ -16,7 +16,7 @@ pub enum RunnerError { CommandNotAvailable(String), /// Unsupported version - #[error("{command} version {current} expected to be ≥ that {minimal}")] + #[error("{command} version {current} expected to be ≥ {minimal}")] UnsupportedVersion { /// The command command: String, @@ -154,7 +154,7 @@ pub enum RunnerError { }, /// Fail to run compose - #[error("Fail run compose in {path:?} because {source}\nrunner: {runner}")] + #[error("Fail to run compose in {path:?} because {source}\nrunner: {runner}")] ComposeError { /// The runner runner: Runner,