Skip to content

Commit

Permalink
Grammatical correction of some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mokarchi authored and meziantou committed Feb 24, 2024
1 parent fbabed5 commit 34a70d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ internal void AnalyzeInvocation(OperationAnalysisContext context)
var targetMethod = operation.TargetMethod;

// The cache only contains methods with no async equivalent methods.
// This optimize the best-case scenario where code is correctly written according to this analyzer.
// This optimizes the best-case scenario where code is correctly written according to this analyzer.
if (_symbolsWithNoAsyncOverloads.Contains(targetMethod))
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ private static void AnalyzeSymbol(SymbolAnalysisContext context)

var originalParameter = baseSymbol.Parameters[parameter.Ordinal];

// We cannot use parameter.IsParams because on overrided member this is true as it is implicitly inherited.
// Instead we need to check if the syntax contains the keyword explicitly
// We cannot use parameter.IsParams because on overridden member this is true as it is implicitly inherited.
// Instead, we need to check if the syntax contains the keyword explicitly
if (originalParameter.IsParams)
{
if (HasParamsKeyword(parameter, context.CancellationToken))
Expand Down

0 comments on commit 34a70d7

Please sign in to comment.