Skip to content

Commit

Permalink
[6.4.0] Explain the use of str(Label(...)) in the docs (#19554)
Browse files Browse the repository at this point in the history
Closes #19509.

Commit
d9beda5

PiperOrigin-RevId: 565763282
Change-Id: I0a8ede20b6bda5140a83c03a44577c034a54dd5f

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
  • Loading branch information
bazel-io and fmeum authored Sep 18, 2023
1 parent 7b72c02 commit ec8c12d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@
*
* <p>Parsing is robust against bad input, for example, from the command line.
*/
@StarlarkBuiltin(name = "Label", category = DocCategory.BUILTIN, doc = "A BUILD target identifier.")
@StarlarkBuiltin(
name = "Label",
category = DocCategory.BUILTIN,
doc =
"A BUILD target identifier."
+ "<p>For every <code>Label<code> instance <code>l</code>, the string representation"
+ " <code>str(l)</code> has the property that <code>Label(str(l)) == l</code>,"
+ " regardless of where the <code>Label()</code> call occurs.")
@AutoCodec
@Immutable
@ThreadSafe
Expand Down

0 comments on commit ec8c12d

Please sign in to comment.