summaryrefslogtreecommitdiff
path: root/chapter17/README.md
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2025-01-13 16:36:11 -0800
committerCliff Click <cliffc@acm.org>2025-01-15 15:07:30 -0800
commita0bee26d769adf61ed0a292983992a70e4e261c3 (patch)
tree2b1a90d673ebb14492292f167011eb7a71facd47 /chapter17/README.md
parentc3559bb04362b948c390b35cac622ce61f494238 (diff)
downloadSimple-a0bee26d769adf61ed0a292983992a70e4e261c3.tar.gz
Simple-a0bee26d769adf61ed0a292983992a70e4e261c3.zip
Prevent self-inlining
Better error message for self-calling functions
Diffstat (limited to 'chapter17/README.md')
-rw-r--r--chapter17/README.md2
1 files changed, 1 insertions, 1 deletions
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