From 1af53dd6aacb9d01bb473936f43c2ba9db6f07e1 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Mon, 22 May 2023 15:31:40 +0100 Subject: [PATCH] Update improvements.md --- docs/errata/improvements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index ee199cf..da944bc 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -483,7 +483,7 @@ Will give the following compile error: CS8803: Top-level statements must precede namespace and type declarations. ``` -If you try to enter it along with the following code in `Program.cs`: +If you try to enter it before the following code in `Program.cs`: ```cs // create a delegate instance that points to the method @@ -493,7 +493,7 @@ DelegateWithMatchingSignature d = new(p1.MethodIWantToCall); int answer2 = d("Frog"); ``` -In the next edition, I will add a note to warn the reader either not to enter this code, or to tell them to put the in a separate file, as shown in the following code: +In the next edition, I will add a note to warn the reader either not to enter this code, or to tell them to put at the bottom of `Program.cs` or in a separate file, as shown in the following code: ```cs // In a separate file like Program.Delegates.cs. delegate int DelegateWithMatchingSignature(string s);