Skip to content

Commit 6cf3e67

Browse files
fix: Add New lines (#801)
Fixes #617
1 parent 1dcaeee commit 6cf3e67

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Errata.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribut
3939
Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection"
4040
Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiting" to "Application shutting down"
4141
Zhou Jing | 4 | 161 | Fix `input < 9` to `input < 0` in Listing 4.24
42-
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
43-
Zhou Jing | 3 | 114 | Replace `second` with `third` in "// Retrieve third item from the end (Python)"
42+
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
43+
Zhou Jing | 3 | 114 | Replace `second` with `third` in "// Retrieve third item from the end (Python)"
4444
Tyler Woody | 13 | 702 | Remove the `!` negation in `string.IsNullOrWhiteSpace(input)` in the while loop to properly allow looping
4545
Benjamin Michaelis | 19 | 948-949 | Add a `(` before the `next + 1` to complete the parenthesis.
46-
Zhou Jing | 9 | 507 | Remove duplicate URL's https://intellitect.com/WhyTupleBreaksTheImmutableRules |
47-
Zhou Jing | 8 | 455 | Replace "8.5" to "8.3" in listing reference in the sentence "Notice that CompareTo() in Listing 8.5" |
46+
Zhou Jing | 2 | 70 | Add breaks inside the brackets in the string interpolation in listing 2.16
47+
Zhou Jing | 9 | 507 | Remove duplicate URL's https://intellitect.com/WhyTupleBreaksTheImmutableRules |
48+
Zhou Jing | 8 | 455 | Replace "8.5" to "8.3" in listing reference in the sentence "Notice that CompareTo() in Listing 8.5" |

src/Chapter02/Listing02.16.NewLinesWithinStringInterpolation.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ public static void Main()
1414
lastName = Console.ReadLine();
1515

1616
#region INCLUDE
17-
Console.WriteLine($@"Your full name is: {firstName} {lastName}");
17+
Console.WriteLine($"Your full name is: {
18+
firstName +
19+
" " +
20+
lastName
21+
}");
1822
#endregion INCLUDE
1923
}
2024
}

0 commit comments

Comments
 (0)