Skip to content

Commit 926e7ff

Browse files
committed
Use IndexOf with Span<T>
1 parent 5c93ae2 commit 926e7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DynamoDBGenerator.SourceGenerator/Extensions/TypeExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static string ToString(ITypeSymbol x, string displayString)
8181
return $"({string.Join(", ", tupleElements)})";
8282
}
8383

84-
var index = displayString.IndexOf("<", StringComparison.Ordinal);
84+
var index = displayString.AsSpan().IndexOf('<');
8585
if (index == -1)
8686
return displayString;
8787

0 commit comments

Comments
 (0)