Skip to content

Commit

Permalink
Fix Listing 3.16
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Mar 27, 2024
1 parent ff1a0a4 commit 1a0ab8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Zhou Jing | 3 | 110 | Replace `System.Value<T1>` with `System.ValueTuple<T1>` i
Zhou Jing | 3 | 102 | Change Listing 2.18 to " the Working with Strings listing in Chapter 2 (Listing 2.24)" in "This listing differs from Listing 2.18 in two ways"
Zhou Jing | 3 | 102 | Changed 'restrictive' to 'less restrictive' in "In each of these cases, the variable declaration is restrictive because the variable may be assigned."
Zhou Jing | 23 | 1077 | Change "Point Declaration" to "Pointer Declaration" in mindmap
Zhou Jing | 22 | 1074 | Change "Chapter 19" to "Chapter 20" in "we pointed out in Chapter 19"
Zhou Jing | 22 | 1074 | Change "Chapter 19" to "Chapter 20" in "we pointed out in Chapter 19"
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ public static void Main()
{
#region INCLUDE
// ERROR: Each dimension must be consistently sized
#region EXCLUDE
/*
#endregion EXLUDE
#if COMPILEERROR // EXCLUDE
int[,] cells = {
{1, 0, 2, 0},
{1, 2, 0},
{1, 2},
{1}
};
#region EXCLUDE
*/
#endregion EXCLUDE
#endif // COMPILEERROR // EXCLUDE
#endregion INCLUDE
}
}

0 comments on commit 1a0ab8a

Please sign in to comment.