Skip to content

Commit 67a133b

Browse files
fmeumcopybara-github
authored andcommitted
Improve documentation for select()
* 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 #14458. PiperOrigin-RevId: 420129541
1 parent ac8dcc6 commit 67a133b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ public Depset depset(
332332
doc =
333333
"A dict that maps configuration conditions to values. Each key is a "
334334
+ "<a href=\"$BE_ROOT/../skylark/lib/Label.html\">Label</a> or a label string"
335-
+ " that identifies a config_setting, constraint_setting, or constraint_value"
336-
+ " instance."),
335+
+ " that identifies a config_setting or constraint_value instance. See the"
336+
+ " <a href=\"$BE_ROOT/../skylark/macros.html#label-resolution-in-macros\">"
337+
+ "documentation on macros</a> for when to use a Label instead of a string."),
337338
@Param(
338339
name = "no_match_error",
339340
defaultValue = "''",

0 commit comments

Comments
 (0)