Skip to content

Commit

Permalink
Merge pull request #468 from TAGC/patch-1
Browse files Browse the repository at this point in the history
Fix typos in SourceCodeTextGetter.cs
  • Loading branch information
josephwoodward committed Oct 15, 2017
2 parents be22172 + 092c565 commit 9b34fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Shouldly/Internals/SourceCodeTextGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ string GetCodePartFromParameter(int indexOfMethod, string codeLines, string code
? parameterString.Substring(parameterString.IndexOf(">", StringComparison.Ordinal) + 2)
: parameterString.Substring(1);

var parantheses = new Dictionary<char, char>
var parentheses = new Dictionary<char, char>
{
{'{', '}'},
{'(', ')'},
Expand All @@ -138,9 +138,9 @@ string GetCodePartFromParameter(int indexOfMethod, string codeLines, string code
continue;
}

if (parantheses.ContainsKey(currentChar))
if (parentheses.ContainsKey(currentChar))
{
openParentheses.Add(parantheses[currentChar]);
openParentheses.Add(parentheses[currentChar]);
}
else if (openParentheses.Count > 0 && openParentheses.Last() == currentChar)
{
Expand Down

0 comments on commit 9b34fb4

Please sign in to comment.