Skip to content

Commit

Permalink
Fix toolchain typo in bazel-and-java.md
Browse files Browse the repository at this point in the history
The "Java and Bazel" page twice referenced a method
`register_toolchain` which contains a typo. The method's correct name is
`register_toolchains`, with a plural "s".

Closes #15953.

PiperOrigin-RevId: 463243967
Change-Id: I150d4b83110dafd7df2ec881b5dca3b540749c49
  • Loading branch information
jonshea authored and Copybara-Service committed Jul 26, 2022
1 parent 3f5edd8 commit 9fc089d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/docs/bazel-and-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ LCOV format.
The `TestRunner` tool executes JUnit 4 tests in a controlled environment.

You can reconfigure the compilation by adding `default_java_toolchain` macro to
a `BUILD` file and registering it either by adding `register_toolchain` rule to
a `BUILD` file and registering it either by adding `register_toolchains` rule to
the `WORKSPACE` file or by using
[`--extra_toolchains`](/docs/user-manual#extra-toolchains) flag.

Expand All @@ -258,7 +258,7 @@ default_java_toolchain(
```

which can be used using `--extra_toolchains=//:repository_default_toolchain_definition`
or by adding `register_toolchain("//:repository_default_toolchain_definition")`
or by adding `register_toolchains("//:repository_default_toolchain_definition")`
to the workpace.

Predefined configurations:
Expand Down

0 comments on commit 9fc089d

Please sign in to comment.