Skip to content

Commit 3f0a165

Browse files
authored
Fix typos in extensions (#3578)
1 parent 7176ab4 commit 3f0a165

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ repos:
1818
exclude: |
1919
(?x)^(
2020
crate_universe/test_data|
21-
examples|
22-
extensions
21+
examples
2322
)
2423
exclude_types:
2524
- diff

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[default.extend-words]
22
nto = "nto" # For toolchains
33
flate = "flate" # https://crates.io/crates/flate2
4+
ba = "ba" # Used in protoc_wrapper.rs with "baR"

extensions/bindgen/private/bindgen.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _rust_bindgen_impl(ctx):
235235
if wrap_static_fns:
236236
if "--wrap-static-fns" in ctx.attr.bindgen_flags:
237237
fail("Do not pass `--wrap-static-fns` to `bindgen_flags, it's added automatically." +
238-
"The generated C file is accesible in the `bindgen_c_thunks` output group.")
238+
"The generated C file is accessible in the `bindgen_c_thunks` output group.")
239239
c_output = ctx.actions.declare_file(ctx.label.name + ".bindgen_c_thunks.c")
240240
args.add("--experimental")
241241
args.add("--wrap-static-fns")

extensions/prost/private/protoc_wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl Module {
105105
const ADDITIONAL_CONTENT_HEADER: &str =
106106
"// A D D I T I O N A L S O U R C E S ========================================";
107107

108-
/// Generate a lib.rs file with all prost/tonic outputs embeeded in modules which
108+
/// Generate a lib.rs file with all prost/tonic outputs embedded in modules which
109109
/// mirror the proto packages. For the example proto file we would expect to see
110110
/// the Rust output that follows it.
111111
///

extensions/prost/private/tests/services/echo/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async fn streaming_echo(client: &mut EchoClient<Channel>, num: usize) {
2424
while let Some(item) = stream.next().await {
2525
println!("\treceived: {}", item.unwrap().message);
2626
}
27-
// stream is droped here and the disconnect info is send to server
27+
// stream is dropped here and the disconnect info is send to server
2828
}
2929

3030
async fn bidirectional_streaming_echo(client: &mut EchoClient<Channel>, num: usize) {

extensions/prost/private/tests/services/echo/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl echo_server::Echo for EchoServer {
117117

118118
match tx.send(Err(err)).await {
119119
Ok(_) => (),
120-
Err(_err) => break, // response was droped
120+
Err(_err) => break, // response was dropped
121121
}
122122
}
123123
}

extensions/protobuf/3rdparty/patches/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ script in the 2.x.x series. This generates a small version.rs file that would be
1010
However, the build.rs file requires a number of environment variables, normally
1111
provided by cargo to the build file. Crate Universe does not provide these
1212
variables. The resulting code includes a version string and version identifier.
13-
The version string is then used by protobuf-codegen to generate code refering to
13+
The version string is then used by protobuf-codegen to generate code referring to
1414
the identifier in the protobuf library. The use can be seen
1515
[here](https://github.com/stepancheg/rust-protobuf/blob/v2.8/protobuf-codegen/src/lib.rs#L160).
1616
This is to enforce at compile time that the version of protobuf-codegen matches

extensions/protobuf/proto.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _rust_proto_aspect_impl(target, ctx):
9292
ctx (ctx): The rule context which the targetis created from
9393
9494
Returns:
95-
list: A list containg a `RustProtoInfo` provider
95+
list: A list containing a `RustProtoInfo` provider
9696
"""
9797
if ProtoInfo not in target:
9898
return None

extensions/wasm_bindgen/DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Updating [wasm-bindgen][wb]
44

5-
Use the followign steps to update to new versions of [wasm-bindgen][wb].
5+
Use the following steps to update to new versions of [wasm-bindgen][wb].
66

77
1. Update `WASM_BINDGEN_VERSION` in `@rules_rust_wasm_bindgen//:repositories.bzl`
88
2. Update the sha256 value for the `rules_rust_wasm_bindgen_cli` repository defined in `@rules_rust_wasm_bindgen//:repositories.bzl` to match the artifact from the updated `WASM_BINDGEN_VERSION` value.

extensions/wasm_bindgen/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ toolchains to register in the workspace.
2929
3030
## Interfacing with Javascript rules
3131
32-
While it's recommended for users to mantain their own , in the
32+
While it's recommended for users to maintain their own , in the
3333
`@rules_rust_wasm_bindgen` package there exists interface sub-packages for various
3434
Javascript Bazel rules. E.g. `aspect_rules_js`. The rules defined there are a more
3535
convenient way to use `rust_wasm_bindgen` with the associated javascript rules due

0 commit comments

Comments
 (0)