Skip to content

Commit 8237e3f

Browse files
fix: Wrap listing (#823)
1 parent af6e8da commit 8237e3f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Chapter02/Listing02.09.UsingStringFormat.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ public static void Main()
1818
currencyText = $"{number:C}";
1919
Console.WriteLine(currencyText);
2020

21-
// Prove that string interpolation and the ToString method produce equivalent results with format specifiers
21+
// Prove that string interpolation and the ToString method
22+
// produce equivalent results with format specifiers
2223
string toStringCurrencyText = number.ToString("C");
23-
Console.WriteLine($"{currencyText == toStringCurrencyText}: {currencyText} == {toStringCurrencyText}");
24+
Console.WriteLine(
25+
$"{currencyText == toStringCurrencyText}: " +
26+
$"{currencyText} == {toStringCurrencyText}");
2427

2528
// el-GR represents the Greek locale code
26-
toStringCurrencyText = number.ToString("C", CultureInfo.GetCultureInfo("el-GR"));
29+
toStringCurrencyText = number.ToString("C",
30+
CultureInfo.GetCultureInfo("el-GR"));
2731
Console.WriteLine(toStringCurrencyText);
2832

2933
// ...

0 commit comments

Comments
 (0)