From 1ee4c6d2fbc1295d4403482a91795761e203e725 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Sun, 16 Apr 2023 09:06:29 +0100 Subject: [PATCH] Update errata.md --- docs/errata/errata.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/errata/errata.md b/docs/errata/errata.md index 98f23cc..cad1184 100644 --- a/docs/errata/errata.md +++ b/docs/errata/errata.md @@ -345,7 +345,7 @@ the following markup: In this section, we define some methods and operators so that two `Person` objects can get married and have babies. The example we model comes from the Bible story of Lamech and his two wives and their children. But the code I tell you to write does not allow Lamech to marry two women so later an exception is thrown when Lamech and his second wife try to make a baby. -cgwid suggested a solution in [the issue they raised](https://github.com/markjprice/cs11dotnet7/issues/59). I want to rethink this code example for the next edition to avoid it becoming overly complex so I will leave it to the reader to decide how they might want to solve it. +cgwid suggested a solution in [the issue they raised](https://github.com/markjprice/cs11dotnet7/issues/59). I want to rethink this code example for the next edition to avoid it becoming overly complex so I will leave it to the reader to decide how they might want to solve it. Meanwhile, I have added an improvement with suggested alternative code here: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/improvements.md#page-235---more-about-methods # Page 244 - Init-only properties