Skip to content

Commit e4f1717

Browse files
committed
Update Polyfill_Memory_EndsWith.cs
1 parent a785d01 commit e4f1717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Polyfill/Polyfill_Memory_EndsWith.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public static bool EndsWith<T>(this ReadOnlySpan<T> target, T value)
3131
return false;
3232
}
3333

34-
var last = target[target.Length-1];
35-
return last?.Equals(value) ?? (object?)value is null;
34+
var last = target[target.Length - 1];
35+
return last?.Equals(value) ?? (object?) value is null;
3636
}
3737

3838
#endif

0 commit comments

Comments
 (0)