Modify cpp-use-cases.md to fix build_file
The build_file parameter for `gtest.BUILD` after the `strip_prefix` process was wrongly configured without the preceding `@//:`, which leads it to not discover the `gtest.BUILD` file and thus fail the build
Resolves #9312
Closes #9313.
PiperOrigin-RevId: 266965310
diff --git a/site/docs/cpp-use-cases.md b/site/docs/cpp-use-cases.md
index 26f0a6d..5f4c75d 100644
--- a/site/docs/cpp-use-cases.md
+++ b/site/docs/cpp-use-cases.md
@@ -173,7 +173,7 @@
name = "gtest",
url = "https://github.com/google/googletest/archive/release-1.7.0.zip",
sha256 = "b58cb7547a28b2c718d1e38aee18a3659c9e3ff52440297e965f5edffe34b6d0",
- build_file = "gtest.BUILD",
+ build_file = "@//:gtest.BUILD",
strip_prefix = "googletest-release-1.7.0",
)
```
@@ -262,4 +262,3 @@
```
This way, other C++ targets in your workspace can depend on this rule.
-