100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

Contradiction in section 7.11

Open xiorcale opened this issue 6 months ago • 2 comments

In section 7.11 Locks, Send and Arc, it seems that the text contradict itself. First in the section "Who holds the lock?" it says:

We can't send a Mutex<Ticket> over a channel, because Mutex is not Clone

However, a bit below in the section "Our challenges", it says:

We can send a Mutex over a channel because it's Send

That's confusing and I'm not sure if we can send a mutex over a channel or not after all.

xiorcale avatar Jun 08 '25 15:06 xiorcale