1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-06 00:44:23 +02:00

Expand "iff" to "if and only if" (#1051)

There has been a few PRs which wanted to change "iff" to "if". Expanding it should help and avoid math-heavy jargon.
This commit is contained in:
Martin Geisler 2023-08-04 13:52:36 +02:00 committed by GitHub
parent c7240f604f
commit c23da457ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ fn main() {
* `Arc` stands for "Atomic Reference Counted", a thread safe version of `Rc` that uses atomic
operations.
* `Arc<T>` implements `Clone` whether or not `T` does. It implements `Send` and `Sync` iff `T`
implements them both.
* `Arc<T>` implements `Clone` whether or not `T` does. It implements `Send` and `Sync` if
and only if `T` implements them both.
* `Arc::clone()` has the cost of atomic operations that get executed, but after that the use of the
`T` is free.
* Beware of reference cycles, `Arc` does not use a garbage collector to detect them.