Skip to content

Commit

Permalink
fix: remaining typos (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Sep 5, 2024
1 parent b23af5c commit 0281cba
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/rattler/src/install/installer/indicatif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub enum ProgressTrack {
Linking,
}

/// Defines the currect status of a progress bar.
/// Defines the correct status of a progress bar.
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ProgressStatus {
/// The progress bar is visible but has not started yet.
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler/src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub struct InstallOptions {

/// For binaries on macOS ARM64 (Apple Silicon), binaries need to be signed
/// with an ad-hoc certificate to properly work. This field controls
/// wether or not to do that. Code signing is only executed when the
/// whether or not to do that. Code signing is only executed when the
/// target platform is macOS ARM64. By default, codesigning will fail
/// the installation if it fails. This behavior can be changed by setting
/// this field to `AppleCodeSignBehavior::Ignore` or
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler_shell/src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub trait Shell {
}
}

/// Convert a native PATH on Windows to a Unix style path usign cygpath.
/// Convert a native PATH on Windows to a Unix style path using cygpath.
fn native_path_to_unix(path: &str) -> Result<String, std::io::Error> {
// call cygpath on Windows to convert paths to Unix style
let output = Command::new("cygpath")
Expand Down
4 changes: 2 additions & 2 deletions crates/rattler_solve/src/libsolv_c/libc_byte_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ pub struct LibcByteSlice {
len: usize,
}

// We can safely implemenet `Send` because LibcByteSlice is immutable
// We can safely implement `Send` because LibcByteSlice is immutable
unsafe impl Send for LibcByteSlice {}

// We can safely implemenet `Send` because LibcByteSlice is immutable
// We can safely implement `Send` because LibcByteSlice is immutable
unsafe impl Sync for LibcByteSlice {}

impl LibcByteSlice {
Expand Down
2 changes: 1 addition & 1 deletion py-rattler/rattler/install/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def install(
packages.
platform: Target platform to create and link the
environment. Defaults to current platform.
execute_link_scripts: Wether to execute the post-link and pre-unlink scripts
execute_link_scripts: whether to execute the post-link and pre-unlink scripts
that may be part of a package. Defaults to False.
show_progress: If set to `True` a progress bar will be shown on the CLI.
client: An authenticated client to use for downloading packages. If not specified a default
Expand Down
15 changes: 15 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[files]
extend-exclude = [
".git/",
".pixi/",
"**/*.snap",
"**/*.txt",
"crates/rattler_libsolv_c",
"test-data",
"crates/rattler_index/tests/test_index.rs"
]
ignore-hidden = false

[default.extend-words]
strat = "strat"
haa = "haa"

0 comments on commit 0281cba

Please sign in to comment.