Skip to content

Commit

Permalink
fix: Table 3.2 wording (#755)
Browse files Browse the repository at this point in the history
Fixes #742
  • Loading branch information
BenjaminMichaelis committed Apr 4, 2024
1 parent 0b29afd commit 4b644ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 4b644ed

Please sign in to comment.