X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/1a33201461b96128740a4334928745c11d3dfe3e..63d67be4fd88cf041af103bd987a84397d5fe0f5:/src/part13.rs diff --git a/src/part13.rs b/src/part13.rs index 31f629b..ac7698c 100644 --- a/src/part13.rs +++ b/src/part13.rs @@ -198,7 +198,7 @@ pub fn main() { //@ functions provided by `Send`. What the trait says is that types which are `Send` can be safely //@ sent to another thread without causing trouble. //@ Of course, all the primitive data-types are `Send`. So is `Arc`, which is why Rust accepted our -//@ code. But `Rc` is not `Send`, and for a good reason! If had two `Rc` to the same data, and sent +//@ code. But `Rc` is not `Send`, and for a good reason! If we had two `Rc`s to the same data, and sent //@ one of them to another thread, things could go havoc due to the lack of synchronization. //@ //@ Now, `Send` as a trait is fairly special. It has a so-called *default implementation*. This