Index: corelib/src/math.dart |
diff --git a/corelib/src/math.dart b/corelib/src/math.dart |
index 401679f855aeddbbf96f70d884591bdae47eee7e..91fbf553f882dc5d1c202c2746d08a29150f2f5e 100644 |
--- a/corelib/src/math.dart |
+++ b/corelib/src/math.dart |
@@ -50,16 +50,14 @@ class Math { |
static final double SQRT2 = 1.4142135623730951; |
/** |
- * Parses a [String] representation of an [int], and returns |
- * an [int]. Throws a [BadNumberFormatException] if [str] |
- * cannot be parsed as an [int]. |
+ * Parses a [String] representation of an [int], and returns an [int]. Throws |
+ * a [FormatException] if [str] cannot be parsed as an [int]. |
*/ |
static int parseInt(String str) => MathNatives.parseInt(str); |
/** |
- * Parses a [String] representation of a [double], and returns |
- * a [double]. Throws a [BadNumberFormatException] if [str] cannot |
- * be parsed as a [double]. |
+ * Parses a [String] representation of a [double], and returns a [double]. |
+ * Throws a [FormatException] if [str] cannot be parsed as a [double]. |
*/ |
static double parseDouble(String str) => MathNatives.parseDouble(str); |