From a352c19f6b260037b68fc3bdd68670dd9a786ae5 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sat, 4 Feb 2023 23:59:46 +0100 Subject: [PATCH] Fix some typos --- src/child.rs | 2 +- src/command/mod.rs | 4 ++-- src/command/test.rs | 2 +- src/lockfile.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/child.rs b/src/child.rs index 7b8a58c..52249ac 100644 --- a/src/child.rs +++ b/src/child.rs @@ -1,4 +1,4 @@ -//! Utilties for managing child processes. +//! Utilities for managing child processes. //! //! This module helps us ensure that all child processes that we spawn get //! properly logged and their output is logged as well. diff --git a/src/command/mod.rs b/src/command/mod.rs index 86eaf3f..190e873 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -31,7 +31,7 @@ pub enum Command { #[structopt(name = "pack")] /// 🍱 create a tar of your npm package but don't publish! Pack { - /// The path to the Rust crate. If not set, searches up the path from the current dirctory. + /// The path to the Rust crate. If not set, searches up the path from the current directory. #[structopt(parse(from_os_str))] path: Option, }, @@ -69,7 +69,7 @@ pub enum Command { #[structopt(long = "tag")] tag: Option, - /// The path to the Rust crate. If not set, searches up the path from the current dirctory. + /// The path to the Rust crate. If not set, searches up the path from the current directory. #[structopt(parse(from_os_str))] path: Option, }, diff --git a/src/command/test.rs b/src/command/test.rs index eed92eb..d7b6642 100644 --- a/src/command/test.rs +++ b/src/command/test.rs @@ -81,7 +81,7 @@ pub struct TestOptions { /// Path to the Rust crate, and extra options to pass to `cargo test`. /// - /// If the path is not provided, this command searches up the path from the current dirctory + /// If the path is not provided, this command searches up the path from the current directory. /// /// This is a workaround to allow wasm pack to provide the same command line interface as `cargo`. /// See for more information. diff --git a/src/lockfile.rs b/src/lockfile.rs index 44cb103..f4a68ea 100644 --- a/src/lockfile.rs +++ b/src/lockfile.rs @@ -65,7 +65,7 @@ impl Lockfile { } } -/// Given the path to the crate that we are buliding, return a `PathBuf` +/// Given the path to the crate that we are building, return a `PathBuf` /// containing the location of the lock file, by finding the workspace root. fn get_lockfile_path(crate_data: &CrateData) -> Result { // Check that a lock file can be found in the directory. Return an error