Index: pkg/expect/lib/expect.dart |
diff --git a/pkg/expect/lib/expect.dart b/pkg/expect/lib/expect.dart |
index 82e604a41a6b6b55714cdb927306a15f7b4940d5..e7eb89218c428a92156517b8609edc628cf813f2 100644 |
--- a/pkg/expect/lib/expect.dart |
+++ b/pkg/expect/lib/expect.dart |
@@ -363,7 +363,7 @@ class Expect { |
if (f is! _Nullary) { |
// Only throws from executing the funtion body should count as throwing. |
// The failure to even call `f` should throw outside the try/catch. |
- _fail("Expect.throws$msg: Funciton f not callable with zero arguments"); |
+ _fail("Expect.throws$msg: Function f not callable with zero arguments"); |
} |
try { |
f(); |
@@ -406,12 +406,12 @@ class NoInline { |
/// Annotation class for testing of dart2js. Use this as metadata on method |
/// declarations to make the type inferrer trust the parameter and return types, |
/// effectively asserting the runtime values will (at least) be subtypes of the |
-/// annotated types. |
+/// annotated types. |
/// |
-/// While the actually inferred type is guaranteed to be a subtype of the |
-/// annotation, it often is more precise. In particular, if a method is only |
+/// While the actually inferred type is guaranteed to be a subtype of the |
+/// annotation, it often is more precise. In particular, if a method is only |
/// called with `null`, the inferrer will still infer null. To ensure that |
-/// the annotated type is also the inferred type, additionally use |
+/// the annotated type is also the inferred type, additionally use |
/// [AssumeDynamic]. |
class TrustTypeAnnotations { |
const TrustTypeAnnotations(); |
@@ -420,7 +420,7 @@ class TrustTypeAnnotations { |
/// Annotation class for testing of dart2js. Use this as metadata on method |
/// declarations to disable closed world assumptions on parameters, effectively |
/// assuming that the runtime arguments could be any value. Note that the |
-/// constraints due to [TrustTypeAnnotations] still apply. |
+/// constraints due to [TrustTypeAnnotations] still apply. |
class AssumeDynamic { |
const AssumeDynamic(); |
} |