Skip to content

Commit 39d78b7

Browse files
AdityaDaflapurkarmhegazy
authored andcommitted
Fix minor typos in documentation (microsoft#21538)
1 parent 477cba5 commit 39d78b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/program.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ namespace ts {
416416
hasInvalidatedResolution: HasInvalidatedResolution,
417417
hasChangedAutomaticTypeDirectiveNames: boolean,
418418
): boolean {
419-
// If we haven't create a program yet or has changed automatic type directives, then it is not up-to-date
419+
// If we haven't created a program yet or have changed automatic type directives, then it is not up-to-date
420420
if (!program || hasChangedAutomaticTypeDirectiveNames) {
421421
return false;
422422
}
@@ -457,10 +457,10 @@ namespace ts {
457457
}
458458

459459
/**
460-
* Determined if source file needs to be re-created even if its text hasnt changed
460+
* Determined if source file needs to be re-created even if its text hasn't changed
461461
*/
462462
function shouldProgramCreateNewSourceFiles(program: Program, newOptions: CompilerOptions) {
463-
// If any of these options change, we cant reuse old source file even if version match
463+
// If any of these options change, we can't reuse old source file even if version match
464464
// The change in options like these could result in change in syntax tree change
465465
const oldOptions = program && program.getCompilerOptions();
466466
return oldOptions && (

0 commit comments

Comments
 (0)