From a0bee26d769adf61ed0a292983992a70e4e261c3 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Mon, 13 Jan 2025 16:36:11 -0800 Subject: Prevent self-inlining Better error message for self-calling functions --- chapter17/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter17') diff --git a/chapter17/README.md b/chapter17/README.md index e0c8d6d9..8a7cc8b1 100644 --- a/chapter17/README.md +++ b/chapter17/README.md @@ -92,7 +92,7 @@ bar.x = 3; // Ok, bar is mutable struct Foo { Bar !bar; int y; } Foo !foo = new Foo; -foo.bar = barl // Ok bar is mutable +foo.bar = bar; // Ok bar is mutable foo.bar.x++; // Ok foo and foo.bar and foo.bar.x are all mutable val xfoo = foo; // Throw away mutability -- cgit v1.2.3