You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OnixLabs.Units/Temperature.To.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public string ToString(ReadOnlySpan<char> format, IFormatProvider? formatProvide
54
54
RankineSpecifier=>(Rankine,RankineSymbol),
55
55
ReaumurSpecifier=>(Reaumur,ReaumurSymbol),
56
56
RomerSpecifier=>(Romer,RomerSymbol),
57
-
_ =>thrownewArgumentException($"Format '{format}' is invalid. Valid format specifiers are: C, De, F, K, N, R, Re, and Ro. Format specifiers may also be suffixed with a scale value.",nameof(format))
57
+
_ =>throwArgumentException.InvalidFormat(format,"C, De, F, K, N, R, Re, and Ro")
0 commit comments