Skip to content

Commit

Permalink
Improve documentation for select()
Browse files Browse the repository at this point in the history
* Reference documentation that explains when to use Label rather than a label string.
* Remove mention of constraint_settings as they can't be used as select keys.

Closes bazelbuild#14458.

PiperOrigin-RevId: 420129541
  • Loading branch information
fmeum authored and copybara-github committed Jan 6, 2022
1 parent ac8dcc6 commit 67a133b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ public Depset depset(
doc =
"A dict that maps configuration conditions to values. Each key is a "
+ "<a href=\"$BE_ROOT/../skylark/lib/Label.html\">Label</a> or a label string"
+ " that identifies a config_setting, constraint_setting, or constraint_value"
+ " instance."),
+ " that identifies a config_setting or constraint_value instance. See the"
+ " <a href=\"$BE_ROOT/../skylark/macros.html#label-resolution-in-macros\">"
+ "documentation on macros</a> for when to use a Label instead of a string."),
@Param(
name = "no_match_error",
defaultValue = "''",
Expand Down

0 comments on commit 67a133b

Please sign in to comment.