Skip to content

Commit

Permalink
Update Polyfill_TryFormat.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 18, 2024
1 parent 308e39e commit 5575e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Polyfill/Polyfill_TryFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static partial class Polyfill
/// Tries to format the value of the current instance into the provided span of characters.
/// </summary>
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.timespan.tryformat#system-timespan-tryformat(system-span((system-char))-system-int32@-system-readonlyspan((system-char))-system-iformatprovider)
public static bool TryFormat(this TimeSpan target, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] IFormatProvider? formatProvider = null)
public static bool TryFormat(this TimeSpan target, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
{
string result;

Expand Down Expand Up @@ -55,7 +55,7 @@ public static bool TryFormat(this Guid target, Span<char> destination, out int c
/// Tries to format the value of the current instance into the provided span of characters.
/// </summary>
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.sbyte.tryformat#system-sbyte-tryformat(system-span((system-char))-system-int32@-system-readonlyspan((system-char))-system-iformatprovider)
public static bool TryFormat(this sbyte target, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, [StringSyntax(StringSyntaxAttribute.NumericFormat)] IFormatProvider? provider = default)
public static bool TryFormat(this sbyte target, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = default)
{
string result;

Expand Down

0 comments on commit 5575e13

Please sign in to comment.