Skip to content

Commit

Permalink
use range indexor
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 24, 2022
1 parent 079728b commit bf12614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shouldly/Internals/SourceCodeTextGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private string GetCodePartFromParameter(int indexOfMethod, string codeLines, str

if (found)
{
codePart = parameterString.Substring(0, i);
codePart = parameterString[..i];
}

return codePart
Expand Down

0 comments on commit bf12614

Please sign in to comment.