Skip to content

Commit 63b9f15

Browse files
committed
Correct documentation for type comparators
1 parent a725499 commit 63b9f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilities/typeComparators.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ export function isTypeSubTypeOf(
6363
return true;
6464
}
6565

66-
// If superType is non-null, maybeSubType must also be nullable.
66+
// If superType is non-null, maybeSubType must also be non-null.
6767
if (superType instanceof GraphQLNonNull) {
6868
if (maybeSubType instanceof GraphQLNonNull) {
6969
return isTypeSubTypeOf(schema, maybeSubType.ofType, superType.ofType);
7070
}
7171
return false;
7272
} else if (maybeSubType instanceof GraphQLNonNull) {
73-
// If superType is nullable, maybeSubType may be non-null.
73+
// If superType is nullable, maybeSubType may be non-null or nullable.
7474
return isTypeSubTypeOf(schema, maybeSubType.ofType, superType);
7575
}
7676

0 commit comments

Comments
 (0)