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:
parent
c7240f604f
commit
c23da457ae
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user