Skip to content

Commit e6cf655

Browse files
paldepindCopilot
andauthored
Rust: Fix typos and update references in documentation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b6c413b commit e6cf655

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ for code generation to succeed.
6262

6363
### Updating `rust-analyzer`
6464

65-
See [Updating rust-analyzer](UPDATING-RUST-ANALYZER.md).
65+
See [Updating rust-analyzer](updating-rust-analyzer.md).

rust/scripts/update_rust_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_compatible_rust_toolchain(rust_analyzer_version: str) -> str:
6868
crate = json.loads(fetch(crate_url))
6969
rust_analyzer_release = crate["version"]["created_at"].split("T")[0]
7070

71-
# `manifests.txt` is a list of all toolchains. The one we're interested looks likes
71+
# `manifests.txt` is a list of all toolchains. The one we're interested in looks like
7272
# ```
7373
# static.rust-lang.org/dist/YYYY-MM-DD/channel-rust-stable.toml
7474
# ```

rust/updating-rust-analyzer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pkg-config`.
88

99
> [!TIP]
1010
> All steps up to and including running `bazel run //rust:install` are (barring
11-
> any errors) caried out by the script `./scripts/update_rust_analyzer.py`.
11+
> any errors) carried out by the script `rust/scripts/update_rust_analyzer.py`.
1212
> Prefer using the script.
1313
1414
1. Update dependencies.
@@ -58,7 +58,7 @@ pkg-config`.
5858
```
5959
bazel run //rust/codegen
6060
```
61-
If codegen fails other changes might be neccessary. For instance, adaptions
61+
If codegen fails, other changes might be necessary. For instance, adaptations
6262
to `annotations.py`. Make these changes in separate commits.
6363
6464
Once codegen succeeds commit only the changes made by codegen with
@@ -87,8 +87,8 @@ pkg-config`.
8787
toolchain in `rust/extractor/src/nightly-toolchain/rust-toolchain.toml`
8888
to a more recent date while you're at it.
8989
* a toolchain and/or `rules_rust` bump invalidates the vendored files, so
90-
re-run `misc/bazel/3rdparty/update_cargo_deps.sh` (see the note in step
91-
4) and commit the regenerated files.
90+
re-run `misc/bazel/3rdparty/update_cargo_deps.sh` (see the note in step
91+
3) and commit the regenerated files.
9292
* if it fails while compiling rust extractor code, you will need to adapt it
9393
to the new library version.
9494
* for example updating annotations in `annotations.py`, adding / removing

0 commit comments

Comments
 (0)