From e8d5a3f5f9e908ae0e7a984b791afdd41235baa2 Mon Sep 17 00:00:00 2001 From: Maher Jendoubi Date: Tue, 21 Jan 2020 23:27:55 +0100 Subject: [PATCH] Contributing: fixed some typos --- eng/build-utils.ps1 | 2 +- .../EditAndContinue/EditAndContinueWorkspaceServiceTests.cs | 4 ++-- .../Core/Portable/EditAndContinue/CommittedSolution.cs | 2 +- .../EditAndContinue/EditAndContinueWorkspaceService.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eng/build-utils.ps1 b/eng/build-utils.ps1 index 081b99f4024..763c6a0e0cf 100644 --- a/eng/build-utils.ps1 +++ b/eng/build-utils.ps1 @@ -119,7 +119,7 @@ function Exec-CommandCore([string]$command, [string]$commandArgs, [switch]$useCo } } finally { - # If we didn't finish then an error occured or the user hit ctrl-c. Either + # If we didn't finish then an error occurred or the user hit ctrl-c. Either # way kill the process if (-not $finished) { $process.Kill() diff --git a/src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs b/src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs index 0e223a5e550..e2c2f4dca6f 100644 --- a/src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs +++ b/src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs @@ -770,7 +770,7 @@ public async Task BreakMode_ErrorReadingPdbFile() var diagnostics = await service.GetDocumentDiagnosticsAsync(document2, CancellationToken.None).ConfigureAwait(false); Assert.Empty(diagnostics); - // an error occured so we need to call update to determine whether we have changes to apply or not: + // an error occurred so we need to call update to determine whether we have changes to apply or not: Assert.True(await service.HasChangesAsync(sourceFilePath: null, CancellationToken.None).ConfigureAwait(false)); Assert.Empty(_emitDiagnosticsUpdated); @@ -838,7 +838,7 @@ public async Task BreakMode_ErrorReadingSourceFile() var diagnostics = await service.GetDocumentDiagnosticsAsync(document2, CancellationToken.None).ConfigureAwait(false); Assert.Empty(diagnostics); - // an error occured so we need to call update to determine whether we have changes to apply or not: + // an error occurred so we need to call update to determine whether we have changes to apply or not: Assert.True(await service.HasChangesAsync(sourceFilePath: null, CancellationToken.None).ConfigureAwait(false)); Assert.Empty(_emitDiagnosticsUpdated); diff --git a/src/Features/Core/Portable/EditAndContinue/CommittedSolution.cs b/src/Features/Core/Portable/EditAndContinue/CommittedSolution.cs index aaea0a9a0ac..25f680652a4 100644 --- a/src/Features/Core/Portable/EditAndContinue/CommittedSolution.cs +++ b/src/Features/Core/Portable/EditAndContinue/CommittedSolution.cs @@ -282,7 +282,7 @@ public void CommitSolution(Solution solution) /// Returns true if the PDB contains a document record for given , /// in which case and contain its checksum. /// False if the document is not found in the PDB. - /// Null if it can't be determined because the PDB is not available or an error occured while reading the PDB. + /// Null if it can't be determined because the PDB is not available or an error occurred while reading the PDB. /// private bool? TryReadSourceFileChecksumFromPdb(string sourceFilePath, ProjectId projectId, out ImmutableArray checksum, out SourceHashAlgorithm algorithm) { diff --git a/src/Features/Core/Portable/EditAndContinue/EditAndContinueWorkspaceService.cs b/src/Features/Core/Portable/EditAndContinue/EditAndContinueWorkspaceService.cs index 1b1f4adc2e8..cf7bf63b5aa 100644 --- a/src/Features/Core/Portable/EditAndContinue/EditAndContinueWorkspaceService.cs +++ b/src/Features/Core/Portable/EditAndContinue/EditAndContinueWorkspaceService.cs @@ -507,7 +507,7 @@ public void DiscardSolutionUpdate() } // This method is only called when the EnC is about to apply changes, at which point all active statements and - // their exception regions will be needed. Hence it's not neccessary to scope this query down to just the instruction + // their exception regions will be needed. Hence it's not necessary to scope this query down to just the instruction // the debugger is interested at this point while not calculating the others. var baseActiveStatements = await editSession.BaseActiveStatements.GetValueAsync(cancellationToken).ConfigureAwait(false); -- GitLab