diff options
| author | Cliff Click <cliffc@acm.org> | 2024-11-15 12:42:52 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2024-11-23 09:03:20 -0800 |
| commit | b8d64b4c4c7b83794b5317a3d1135be38cd88ac8 (patch) | |
| tree | 6b1dee288e6e8c692924a1eb49a823e73a4fc064 /chapter17 | |
| parent | b5ad5c2a2959d88327ee15e887b3c083c536c44a (diff) | |
| download | Simple-b8d64b4c4c7b83794b5317a3d1135be38cd88ac8.tar.gz Simple-b8d64b4c4c7b83794b5317a3d1135be38cd88ac8.zip | |
Update README.md
Diffstat (limited to 'chapter17')
| -rw-r--r-- | chapter17/README.md | 4 |
1 files 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`. |
