|
12 | 12 | //! `std::future::Future`. |
13 | 13 | //! |
14 | 14 | //! Without this module this situation won't work because 0.A.0 has no |
15 | | -//! knowledge of 0.B.0 meaning that when 0.B.0 decides to block it won't know |
16 | | -//! where to register its `waitable` within a `waitable-set`. |
| 15 | +//! knowledge of 0.B.0 meaning that 0.B.0 has no means of inserting a `waitable` |
| 16 | +//! into the `waitable-set` managed by 0.A.0's export. |
17 | 17 | //! |
18 | 18 | //! To solve this problem the long-term intention is that something will live |
19 | 19 | //! in `wasi-libc` itself, but in the meantime it's living "somewhere" within |
20 | | -//! `wit-bindgen 0.*.0`. Specifically all `wit-bindgen` versions will all |
| 20 | +//! `wit-bindgen 0.*.0`. Specifically all `wit-bindgen` versions will |
21 | 21 | //! reference, via C linkage, a single function which is used to manipulate a |
22 | 22 | //! single pointer in linear memory. This pointer is a `wasip3_task` structure |
23 | 23 | //! which has all the various fields to use it. |
@@ -50,7 +50,7 @@ extern "C" { |
50 | 50 | /// Sets the global task pointer to `ptr` provided. Returns the previous |
51 | 51 | /// value. |
52 | 52 | /// |
53 | | - /// This function acts as both a dual getter and a setter. To get the |
| 53 | + /// This function acts as a dual getter and a setter. To get the |
54 | 54 | /// current task pointer a dummy `ptr` can be provided (e.g. NULL) and then |
55 | 55 | /// it's passed back when you're done working with it. When setting the |
56 | 56 | /// current task pointer it's recommended to call this and then call it |
@@ -85,7 +85,7 @@ pub struct wasip3_task { |
85 | 85 | /// well as the `callback_ptr` provided. |
86 | 86 | /// |
87 | 87 | /// If `waitable` was previously registered with this task then the |
88 | | - /// previuos `callback_ptr` is returned. Otherwise `NULL` is returned. |
| 88 | + /// previous `callback_ptr` is returned. Otherwise `NULL` is returned. |
89 | 89 | /// |
90 | 90 | /// It's the caller's responsibility to ensure that `callback_ptr` is valid |
91 | 91 | /// until `callback` is invoked, `waitable_unregister` is invoked, or |
|
0 commit comments