mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
19580d56c2
Primitive docs: fix confusing `Send` in `&T`'s list
The two lists in this document describe what traits are implemented on references when their underlying `T` also implements them. However, while it is true that `T: Send + Sync` implies `&T: Send` (which is what the sentence is trying to explain), it is confusing to have `Send` in the list because `T: Send` is not needed for that. In particular, the "also require" part may be interpreted as "both `T: Send` and `T: Sync` are required".
Instead, move `Send` back to where it was before commit
|
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |