From 1fe883005b463ff690db9dd5a3a7fed2e42c1a77 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Thu, 12 Oct 2023 07:33:15 +0100 Subject: [PATCH] Update improvements.md --- docs/errata/improvements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index 450f9d6..9937777 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -692,7 +692,7 @@ human.Lose(); // Calls the public implicit implementation. ((IGamePlayer)human).Lose(); // Calls the explicit implementation. // Outputs: Implementation for losing a game. -IGamePlayer player = human as IGamePlayer; +IGamePlayer player = human; player.Lose(); // Calls the explicit implementation. // Outputs: Implementation for losing a game.