Skip to content

Commit d52a93d

Browse files
committed
Fix typo in comments
1 parent 649f5c0 commit d52a93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4935,11 +4935,11 @@ module ts {
49354935
// The instanceof operator requires the left operand to be of type Any, an object type, or a type parameter type,
49364936
// and the right operand to be of type Any or a subtype of the 'Function' interface type.
49374937
// The result is always of the Boolean primitive type.
4938-
// NOTE: do not raise error is leftType is unknown as related error was already reported
4938+
// NOTE: do not raise error if leftType is unknown as related error was already reported
49394939
if (leftType !== unknownType && !isTypeAnyTypeObjectTypeOrTypeParameter(leftType)) {
49404940
error(node.left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
49414941
}
4942-
// NOTE: do not raise error is right is unknown as related error was already reported
4942+
// NOTE: do not raise error if right is unknown as related error was already reported
49434943
if (rightType !== unknownType && rightType !== anyType && !isTypeSubtypeOf(rightType, globalFunctionType)) {
49444944
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);
49454945
}

0 commit comments

Comments
 (0)