Fix typos of "function".

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1210483002.
This commit is contained in:
Lasse R.H. Nielsen 2015-06-24 12:36:34 +02:00
parent 3300a005f2
commit d3013cfd35
3 changed files with 8 additions and 8 deletions

View file

@ -5181,7 +5181,7 @@ class SsaBuilder extends NewResolvedVisitor {
Selector selector,
_) {
if (element is ErroneousElement) {
// An erroneous element indicates that the funciton could not be
// An erroneous element indicates that the function could not be
// resolved (a warning has been issued).
handleInvalidStaticInvoke(node, element);
} else {

View file

@ -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();
}

View file

@ -158,7 +158,7 @@ DART_EXPORT Dart_Handle Dart_LookupFunction(Dart_Handle target,
func = cls.LookupFunctionAllowPrivate(tmp_name);
}
// Case 3. Lookup the funciton with the getter prefix prepended.
// Case 3. Lookup the function with the getter prefix prepended.
if (func.IsNull()) {
tmp_name = Field::GetterName(func_name);
func = cls.LookupFunctionAllowPrivate(tmp_name);