Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Table 3.2 wording #755

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribut
Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection"
Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiting" to "Application shutting down"
Zhou Jing | 4 | 161 | Fix `input < 9` to `input < 0` in Listing 4.24
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
Zhou Jing | 3 | 114 | Replace `second` with `third` in "// Retrieve third item from the end (Python)"
8 changes: 4 additions & 4 deletions src/Chapter03/Table03.02.ArrayHighlights.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Justification: Only snippets of source code shown for elucidation.
// Justification: Only snippets of source code shown for elucidation.
#pragma warning disable CS0168 // Variable is declared but never used

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Table03_02;
Expand Down Expand Up @@ -42,11 +42,11 @@ public static void ForwardAndReverseAccessingAnArray()
"Python", "Lisp", "JavaScript"};
// Retrieve fifth item in languages array (TypeScript)
string language = languages[4];
// Write TypeScript
// Write "TypeScript"
Console.WriteLine(language);
// Retrieve second item from the end (Python)
// Retrieve third item from the end (Python)
language = languages[^3];
// Write Python
// Write "Python"
Console.WriteLine(language);
}

Expand Down
Loading