1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-09 23:35:41 +00:00

fix: match format specifier with parameterless ToString

This commit is contained in:
Oliver Booth 2024-02-16 16:37:28 +00:00
parent 6cca6e6072
commit f6991eb697
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ public readonly partial struct Coordinates : IEquatable<Coordinates>, IFormattab
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public string ToString(string? format, IFormatProvider? formatProvider = null)
{
format ??= "0";
format ??= "F";
return Serializer.Serialize(this, format, formatProvider ?? CultureInfo.InvariantCulture);
}
}

View File

@ -207,7 +207,7 @@ public readonly struct Rotation : IEquatable<Rotation>, IFormattable
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public string ToString(string? format, IFormatProvider? formatProvider = null)
{
format ??= "{0}";
format ??= "F";
string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator;
using var builder = ZString.CreateUtf8StringBuilder();