Skip to content

Commit 73f470e

Browse files
authored
Fix typos in examples (#3585)
Last PR to fix all typos (know to the tool) in rules_rust
1 parent 46550dc commit 73f470e

File tree

11 files changed

+12
-13
lines changed

11 files changed

+12
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ repos:
1717
- id: typos
1818
exclude: |
1919
(?x)^(
20-
crate_universe/test_data|
21-
examples
20+
crate_universe/test_data
2221
)
2322
exclude_types:
2423
- diff

examples/all_crate_deps/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips.
1+
# This isn't currently the default in Bazel, but we enable it to test we'll be ready if/when it flips.
22
build --incompatible_disallow_empty_glob
33

44
# Required for cargo_build_script support before Bazel 7

examples/all_deps_vendor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ And the build target:
1212
## Setup
1313

1414
For the setup,
15-
you need to add the skylib in addition to the rust rules to your MODUE.bazel.
15+
you need to add the skylib in addition to the rust rules to your MODULE.bazel.
1616

1717
```starlark
1818
module(
@@ -120,7 +120,7 @@ load("@rules_rust//rust:defs.bzl", "rust_binary")
120120
rust_binary(
121121
name = "hello_sys",
122122
srcs = ["src/main.rs"],
123-
# Note the `crate_unvierse` dependencies here need to have been loaded
123+
# Note the `crate_universe` dependencies here need to have been loaded
124124
# in the WORKSPACE file. See `//:sys_deps.bzl` for more details.
125125
deps = ["//basic/3rdparty/crates:bzip2"],
126126
visibility = ["//visibility:public"],

examples/all_deps_vendor/basic/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rust_binary(
44
name = "hello_sys",
55
srcs = ["src/main.rs"],
66
visibility = ["//visibility:public"],
7-
# Note the `crate_unvierse` dependencies here need to have been loaded
7+
# Note the `crate_universe` dependencies here need to have been loaded
88
# in the WORKSPACE file. See `//:sys_deps.bzl` for more details.
99
deps = ["//basic/3rdparty/crates:bzip2"],
1010
)

examples/compile_opt/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips.
1+
# This isn't currently the default in Bazel, but we enable it to test we'll be ready if/when it flips.
22
build --incompatible_disallow_empty_glob
33

44
# Required for cargo_build_script support before Bazel 7

examples/crate_universe_local_path/WORKSPACE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ crates_repository(
2121
name = "crates_from_cargo_workspace",
2222
cargo_lockfile = "//crates_from_workspace:Cargo.lock",
2323
# `generator` is not necessary in official releases.
24-
# See load satement for `cargo_bazel_bootstrap`.
24+
# See load statement for `cargo_bazel_bootstrap`.
2525
generator = "@cargo_bazel_bootstrap//:cargo-bazel",
2626
manifests = ["//crates_from_workspace:Cargo.toml"],
2727
)

examples/nix_cross_compiling/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
2727
build --incompatible_enable_cc_toolchain_resolution=true
2828

2929
# Require Platform Transitions
30-
## This works by setting the targte platform to an invalid platform
30+
## This works by setting the target platform to an invalid platform
3131
## and each `x_binary()` and `x_library()` rule unfortunately needs
3232
## to tag itself with `platform_missing` to get excluded from glob
3333
## builds like `build //...` but still have a way to include them

examples/override_target/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips.
1+
# This isn't currently the default in Bazel, but we enable it to test we'll be ready if/when it flips.
22
build --incompatible_disallow_empty_glob
33

44
# Required for cargo_build_script support before Bazel 7

examples/sys/basic/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rust_binary(
2020
name = "hello_sys",
2121
srcs = ["src/main.rs"],
2222
edition = "2018",
23-
# Note the `crate_unvierse` dependencies here need to have been loaded
23+
# Note the `crate_universe` dependencies here need to have been loaded
2424
# in the `MODULE.bazel` file.
2525
deps = ["//basic/3rdparty/crates:bzip2"],
2626
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build --incompatible_enable_cc_toolchain_resolution
22

3-
# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips.
3+
# This isn't currently the default in Bazel, but we enable it to test we'll be ready if/when it flips.
44
build --incompatible_disallow_empty_glob

0 commit comments

Comments
 (0)