Skip to content

Commit

Permalink
[8.0.1] Fix invalid dict syntax in macro docs (#24648)
Browse files Browse the repository at this point in the history
Closes #24585.

PiperOrigin-RevId: 704366607
Change-Id: Ibdc89e1ad30ded6f3b69edc2877fcac78c622ea9

Commit
baa0159

Co-authored-by: Fabian Meumertzheim <[email protected]>
  • Loading branch information
bazel-io and fmeum authored Dec 11, 2024
1 parent ecd8bbc commit 193856b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/extending/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ my_macro = macro(
inherit_attrs = native.cc_library,
attrs = {
# override native.cc_library's `local_defines` attribute
local_defines = attr.string_list(default = ["FOO"]),
"local_defines": attr.string_list(default = ["FOO"]),
# do not inherit native.cc_library's `defines` attribute
defines = None,
"defines": None,
},
...
)
Expand Down

0 comments on commit 193856b

Please sign in to comment.