aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/tutorial/java.md
diff options
context:
space:
mode:
Diffstat (limited to 'site/docs/tutorial/java.md')
-rw-r--r--site/docs/tutorial/java.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/docs/tutorial/java.md b/site/docs/tutorial/java.md
index 0c5cafb5e8..e273776316 100644
--- a/site/docs/tutorial/java.md
+++ b/site/docs/tutorial/java.md
@@ -279,8 +279,8 @@ Take a look at the dependency graph:
![Dependency graph of the target 'runner'](/assets/tutorial_java_03.svg)
-However, for the build to succeed, you must make the `runner` target in
-`//src/main/java/com/example/cmdline/BUILD` explicitly visible to targets in
+However, for the build to succeed, you must explicitly give the `runner` target in
+`//src/main/java/com/example/cmdline/BUILD` visibility to targets in
`//BUILD` using the `visibility` attribute. This is because by default targets
are only visible to other targets in the same `BUILD` file. (Bazel uses target
visibility to prevent issues such as libraries containing implementation details