Skip to content

Commit

Permalink
Minor spelling fix (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-E-son authored and giggio committed Oct 25, 2017
1 parent be103f0 commit 187501c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CSharp/CodeCracker/Usage/RethrowExceptionAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private static void Analyzer(SyntaxNodeAnalysisContext context)
if (catchClause == null) return;
var catchExSymbol = context.SemanticModel.GetDeclaredSymbol(catchClause.Declaration);
if (!catchExSymbol.Equals(exSymbol)) return;
var diagnostic = Diagnostic.Create(Rule, throwStatement.GetLocation(), "Throwing the same exception that was caught will loose the original stack trace.");
var diagnostic = Diagnostic.Create(Rule, throwStatement.GetLocation(), "Throwing the same exception that was caught will lose the original stack trace.");
context.ReportDiagnostic(diagnostic);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task WhenThrowingOriginalExceptionAnalyzerCreatesDiagnostic()
var expected = new DiagnosticResult
{
Id = DiagnosticId.RethrowException.ToDiagnosticId(),
Message = "Throwing the same exception that was caught will loose the original stack trace.",
Message = "Throwing the same exception that was caught will lose the original stack trace.",
Severity = DiagnosticSeverity.Warning,
Locations = new[] { new DiagnosticResultLocation("Test0.cs", 12, 21) }
};
Expand Down

0 comments on commit 187501c

Please sign in to comment.