mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 17:56:11 +00:00
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:
parent
a4f7b2c5e0
commit
0234a8f17f
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue