Skip to content

Commit 15ccb75

Browse files
authored
Fix typos in nix and test (#3554)
Next cycle of typo fixes in test folder. Removing nix from the exclude as well since it did not had any typos
1 parent 5c90bb8 commit 15ccb75

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: buildifier-lint
1313
args: [--version, "v8.2.0", --warnings=all]
1414
- repo: https://github.com/crate-ci/typos
15-
rev: v1.34.0
15+
rev: v1.35.3
1616
hooks:
1717
- id: typos
1818
exclude: |
@@ -21,9 +21,7 @@ repos:
2121
examples|
2222
extensions|
2323
ffi|
24-
nix|
2524
rust|
26-
test|
2725
tools|
2826
util
2927
)

test/cargo_build_script/cc_args_and_env/cc_args_and_env_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test_cc_config = rule(
5353
provides = [CcToolchainConfigInfo],
5454
)
5555

56-
def _with_extra_toolchains_transition_impl(_setings, attr):
56+
def _with_extra_toolchains_transition_impl(_settings, attr):
5757
return {"//command_line_option:extra_toolchains": attr.extra_toolchains}
5858

5959
with_extra_toolchains_transition = transition(

test/cargo_build_script/foreign_toolchain_make_variables/toolchain.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Utilties for testing forwarding Make variables from toolchains."""
1+
"""Utilities for testing forwarding Make variables from toolchains."""
22

33
def _dummy_env_var_toolchain_impl(_ctx):
44
make_variables = platform_common.TemplateVariableInfo({

test/current_toolchain_files/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _FILES = {
2323
name = tool + "_test",
2424
kind = kind,
2525
pattern = pattern,
26-
# TOOO: Windows requires use of bash which is not guaranteed to be available.
26+
# TODO: Windows requires use of bash which is not guaranteed to be available.
2727
# The test runner should ideally be rewritten in rust so that windows could
2828
# be tested.
2929
target_compatible_with = select({

test/process_wrapper/process_wrapper_tester.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void test_stderr() { std::cerr << "This is the stderr output"; }
158158

159159
int main(int argc, const char* argv[], const char* envp[]) {
160160
if (argc < 4) {
161-
std::cerr << "error: Invalid number of args exected at least 4 got "
161+
std::cerr << "error: Invalid number of args expected at least 4 got "
162162
<< argc << ".\n";
163163
return 1;
164164
}

test/process_wrapper_bootstrap/bootstrap_process_wrapper_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Tests for the boostrap process wrapper
1+
//! Tests for the bootstrap process wrapper
22
33
use std::fs::read_to_string;
44

test/rust_analyzer/generated_srcs_test/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pub mod generated;
33
#[cfg(test)]
44
mod tests {
55
#[test]
6-
fn test_fourty_two() {
6+
fn test_forty_two() {
77
assert_eq!(super::generated::forty_two(), 42);
88
}
99
}

test/unit/exports/exports_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def _exports_test_impl(ctx, dependencies, externs):
1111
asserts.equals(env, action.mnemonic, "Rustc")
1212

1313
# Transitive symbols that get re-exported are expected to be located by a `-Ldependency` flag.
14-
# The assert below ensures that each dependnecy flag is passed to the Rustc action. For details see
14+
# The assert below ensures that each dependency flag is passed to the Rustc action. For details see
1515
# https://doc.rust-lang.org/rustc/command-line-arguments.html#-l-add-a-directory-to-the-library-search-path
1616
for dep in dependencies:
1717
assert_argv_contains_prefix_suffix(

test/unit/toolchain/toolchain_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _toolchain_specifies_target_json_test_impl(ctx):
2525
asserts.equals(env, None, toolchain_info.target_triple)
2626
asserts.equals(env, "x86_64", toolchain_info.target_arch)
2727

28-
# The specific name here is not as vaulable as identifying that `target_json` is a json file
28+
# The specific name here is not as valuable as identifying that `target_json` is a json file
2929
expected_basename = "{}.target.json".format(target.label.name)
3030
asserts.equals(env, expected_basename, toolchain_info.target_json.basename)
3131

0 commit comments

Comments
 (0)