Skip to content

Commit

Permalink
Fix invalid dict syntax in macro docs
Browse files Browse the repository at this point in the history
Closes bazelbuild#24585.

PiperOrigin-RevId: 704366607
Change-Id: Ibdc89e1ad30ded6f3b69edc2877fcac78c622ea9
  • Loading branch information
fmeum authored and bazel-io committed Dec 11, 2024
1 parent c8217fd commit 0037ee5
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 0037ee5

Please sign in to comment.