Skip to content

Commit c84cdf5

Browse files
xinnjieaignas
andauthored
doc: fix toolchains.md mistake (#1928)
Fixes #1921 --------- Co-authored-by: Ignas Anikevicius <[email protected]>
1 parent f51d104 commit c84cdf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sphinx/toolchains.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ you should read the dev-only library module section.
3838

3939
```
4040
bazel_dep(name="rules_python", version=...)
41-
python = use_extension("@rules_python//extensions:python.bzl", "python")
41+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
4242
4343
python.toolchain(python_version = "3.12", is_default = True)
4444
```
@@ -63,7 +63,7 @@ specify `dev_dependency = True` to the bzlmod APIs:
6363
bazel_dep(name = "rules_python", version=..., dev_dependency = True)
6464
6565
python = use_extension(
66-
"@rules_python//extensions:python.bzl",
66+
"@rules_python//python/extensions:python.bzl",
6767
"python",
6868
dev_dependency = True
6969
)
@@ -109,7 +109,7 @@ the version-aware rules for `py_binary`.
109109
# MODULE.bazel
110110
bazel_dep(name = "rules_python", version=...)
111111
112-
python = use_extension("@rules_python//extensions:python.bzl", "python")
112+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
113113
python.toolchain(python_version = "3.12")
114114
115115
# BUILD.bazel

0 commit comments

Comments
 (0)