Skip to content

Commit ce11ad8

Browse files
AlexJones0jwnrt
authored andcommitted
[bazel] Fix opentitan_select_top documentation
The docs for this function use non-existent top `english_breakfast` as an example (`englishbreakfast` is the actual name). They also give an example of using an array as a dictionary key, but arrays are non-hashable and so a tuple must be used instead to make a collection as a key. Signed-off-by: Alex Jones <[email protected]>
1 parent 4cce541 commit ce11ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/top/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def opentitan_select_top(values, default):
6666
name = "my_alias",
6767
actual = opentitan_select_top({
6868
"earlgrey": "//something:earlgrey",
69-
["english_breakfast", "darjeeling"]: "//something:else",
69+
("englishbreakfast", "darjeeling"): "//something:else",
7070
}, "//something:error")
7171
)
7272
"""

0 commit comments

Comments
 (0)