1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 22:37:28 +02:00

Update interior-mutability.md (#1554)

fix typo copmile-time
This commit is contained in:
Xavier Carol 2023-12-04 19:36:35 +01:00 committed by GitHub
parent 24b132b67a
commit 7d10518b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ Introduce the concept, with an example based on Mutex showing an `&self` method
# Interior Mutability # Interior Mutability
Rust provides a few safe means of modifying a value given only a shared Rust provides a few safe means of modifying a value given only a shared
reference to that value. All of these replace copmile-time checks with runtime reference to that value. All of these replace compile-time checks with runtime
checks. checks.
## `Cell` and `RefCell` ## `Cell` and `RefCell`