Skip to content

Commit

Permalink
doc: fix toolchains.md mistake (bazelbuild#1928)
Browse files Browse the repository at this point in the history
Fixes bazelbuild#1921

---------

Co-authored-by: Ignas Anikevicius <[email protected]>
  • Loading branch information
xinnjie and aignas authored May 29, 2024
1 parent f51d104 commit c84cdf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sphinx/toolchains.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ you should read the dev-only library module section.

```
bazel_dep(name="rules_python", version=...)
python = use_extension("@rules_python//extensions:python.bzl", "python")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12", is_default = True)
```
Expand All @@ -63,7 +63,7 @@ specify `dev_dependency = True` to the bzlmod APIs:
bazel_dep(name = "rules_python", version=..., dev_dependency = True)
python = use_extension(
"@rules_python//extensions:python.bzl",
"@rules_python//python/extensions:python.bzl",
"python",
dev_dependency = True
)
Expand Down Expand Up @@ -109,7 +109,7 @@ the version-aware rules for `py_binary`.
# MODULE.bazel
bazel_dep(name = "rules_python", version=...)
python = use_extension("@rules_python//extensions:python.bzl", "python")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12")
# BUILD.bazel
Expand Down

0 comments on commit c84cdf5

Please sign in to comment.