Commit f1db538
docs: add missing load() statements in examples (#28448)
### What does this PR do?
This PR adds missing `load()` statements to documentation examples that reference
rules or symbols without showing how they are imported.
Several examples currently assume implicit knowledge of where rules are defined,
which can be confusing for new users.
---
### What’s included?
- Added the appropriate `load()` statements to affected examples
- No behavioral or semantic changes to the documented examples
- Improves copy-paste usability and clarity
---
### Why is this useful?
Without explicit `load()` statements, examples may not work as written and can
lead to confusion for users learning Bazel rules and macros.
This change makes the documentation more self-contained and accurate.
---
### Verification
- Manually reviewed updated examples for correctness and consistency
- Confirmed all added `load()` statements match the rules used in each example
---
Fixes #16001
Closes #28448.
PiperOrigin-RevId: 865520234
Change-Id: I0147ac8fc045fc473a5724cdc3de1ec5eb4acc021 parent ad2a52e commit f1db538
File tree
4 files changed
+4
-0
lines changed- docs/docs
- site/en/docs
4 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
940 | 941 | | |
941 | 942 | | |
942 | 943 | | |
| |||
0 commit comments