We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75cfca9 commit 8457458Copy full SHA for 8457458
CSharpMath/Structures/Dictionary.cs
@@ -120,9 +120,9 @@ static int SplitCommand(ReadOnlySpan<char> chars) {
120
return TryLookupNonCommand(chars);
121
}
122
Result<(TValue Result, int SplitIndex)> TryLookupNonCommand(ReadOnlySpan<char> chars) {
123
- foreach ((string NonCommand, TValue Value) t in nonCommands) {
124
- if (chars.StartsWith(t.NonCommand.AsSpan(), StringComparison.Ordinal)) {
125
- return Result.Ok((t.Value, t.NonCommand.Length)); }
+ foreach ((string NonCommand, TValue Value) in nonCommands) {
+ if (chars.StartsWith(NonCommand.AsSpan(), StringComparison.Ordinal)) {
+ return Result.Ok((Value, NonCommand.Length)); }
126
127
return defaultParser(chars);
128
0 commit comments