We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b213c94 + 165a281 commit cfb7778Copy full SHA for cfb7778
src/doc/trpl/ffi.md
@@ -309,8 +309,8 @@ and invokes callbacks from there.
309
In these cases access to Rust data structures inside the callbacks is
310
especially unsafe and proper synchronization mechanisms must be used.
311
Besides classical synchronization mechanisms like mutexes, one possibility in
312
-Rust is to use channels (in `std::comm`) to forward data from the C thread
313
-that invoked the callback into a Rust thread.
+Rust is to use channels (in `std::sync::mpsc`) to forward data from the C
+thread that invoked the callback into a Rust thread.
314
315
If an asynchronous callback targets a special object in the Rust address space
316
it is also absolutely necessary that no more callbacks are performed by the
0 commit comments