Fix bad link in updated docs.

CoreLibraryReviewExempt: Comment only.
Change-Id: Ibaec3812e430ba0c8644315fba062bca62f3c173
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331241
Auto-Submit: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
Lasse R.H. Nielsen 2023-10-20 14:47:26 +00:00 committed by Commit Queue
parent a4f7b2c5e0
commit 0234a8f17f

View file

@ -27,9 +27,9 @@ final class bool {
/// The string values can be directly accessed using [String.fromEnvironment].
///
/// This constructor parses the string value associated with [name] as
/// a boolean, as if by [`bool.tryParse(value)`](bool.tryParse),
/// a boolean, as if by [`bool.tryParse(value)`][bool.tryParse],
/// meaning that it accepts only the strings `"true"` and `"false"`.
/// If [name]
///
/// If there is no value associated with [name] in the compilation
/// configuration environment, or if the associated string value is not one
/// of `"true"` or `"false"`, the value of the constructor invocation
@ -41,6 +41,7 @@ final class bool {
/// (const String.fromEnvironment(name) == "true")
/// || ((const String.fromEnvironment(name) != "false") && defaultValue)
/// ```
///
/// Example:
/// ```dart
/// const bool loggingEnabled = bool.fromEnvironment("logging");