From b8d64b4c4c7b83794b5317a3d1135be38cd88ac8 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 15 Nov 2024 12:42:52 -0800 Subject: Update README.md --- chapter17/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter17/README.md b/chapter17/README.md index 462a67f5..f6216398 100644 --- a/chapter17/README.md +++ b/chapter17/README.md @@ -79,9 +79,9 @@ through other references. -### References with an initializer are deeply immutable +### Reference variables with an initializer are deeply immutable -Initialized variables are deeply immutable, but a mutable version of the same +Initialized reference variables are deeply immutable, but a mutable version of the same reference can exist. This works for `val` and normal type declarations: `val s = new S;` and `S s = new S` both make `s` an immutable reference to a `struct S`. -- cgit v1.2.3