Fix bool.parse() examples

Closes https://github.com/dart-lang/sdk/pull/52389

GitOrigin-RevId: 4987894e85a28e18b183eb45a111d47444d305db
Change-Id: Ib68581d7966c0fb24ccd9070054ea9aaadd2e17d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303221
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
diff --git a/sdk/lib/core/bool.dart b/sdk/lib/core/bool.dart
index a3fc700..5c6239f 100644
--- a/sdk/lib/core/bool.dart
+++ b/sdk/lib/core/bool.dart
@@ -112,15 +112,15 @@
   ///
   /// Example:
   /// ```dart
-  /// print(bool.tryParse('true')); // true
-  /// print(bool.tryParse('false')); // false
-  /// print(bool.tryParse('TRUE')); // throws FormatException
-  /// print(bool.tryParse('TRUE', caseSensitive: false)); // true
-  /// print(bool.tryParse('FALSE', caseSensitive: false)); // false
-  /// print(bool.tryParse('NO')); // throws FormatException
-  /// print(bool.tryParse('YES')); // throws FormatException
-  /// print(bool.tryParse('0')); // throws FormatException
-  /// print(bool.tryParse('1')); // throws FormatException
+  /// print(bool.parse('true')); // true
+  /// print(bool.parse('false')); // false
+  /// print(bool.parse('TRUE')); // throws FormatException
+  /// print(bool.parse('TRUE', caseSensitive: false)); // true
+  /// print(bool.parse('FALSE', caseSensitive: false)); // false
+  /// print(bool.parse('NO')); // throws FormatException
+  /// print(bool.parse('YES')); // throws FormatException
+  /// print(bool.parse('0')); // throws FormatException
+  /// print(bool.parse('1')); // throws FormatException
   /// ```
   @Since("3.0")
   external static bool parse(String source, {bool caseSensitive = true});