From d52a93d58db3a14cb03e69b00fad40212723c5e1 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Wed, 24 Sep 2014 10:53:55 -0700 Subject: [PATCH] Fix typo in comments --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ae19551cc13..d5741d1d6cc 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4935,11 +4935,11 @@ module ts { // The instanceof operator requires the left operand to be of type Any, an object type, or a type parameter type, // and the right operand to be of type Any or a subtype of the 'Function' interface type. // The result is always of the Boolean primitive type. - // NOTE: do not raise error is leftType is unknown as related error was already reported + // NOTE: do not raise error if leftType is unknown as related error was already reported if (leftType !== unknownType && !isTypeAnyTypeObjectTypeOrTypeParameter(leftType)) { error(node.left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } - // NOTE: do not raise error is right is unknown as related error was already reported + // NOTE: do not raise error if right is unknown as related error was already reported if (rightType !== unknownType && rightType !== anyType && !isTypeSubtypeOf(rightType, globalFunctionType)) { error(node.right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); }