File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22mod platform {
33 /// An extension trait that enforces `Send` only on native platforms.
44 ///
5- /// Useful to write cross-platform async code!
5+ /// Useful for writing cross-platform async code!
66 pub trait MaybeSend : Send { }
77
88 impl < T > MaybeSend for T where T : Send { }
99
1010 /// An extension trait that enforces `Sync` only on native platforms.
1111 ///
12- /// Useful to write cross-platform async code!
12+ /// Useful for writing cross-platform async code!
1313 pub trait MaybeSync : Sync { }
1414
1515 impl < T > MaybeSync for T where T : Sync { }
@@ -19,14 +19,14 @@ mod platform {
1919mod platform {
2020 /// An extension trait that enforces `Send` only on native platforms.
2121 ///
22- /// Useful to write cross-platform async code!
22+ /// Useful for writing cross-platform async code!
2323 pub trait MaybeSend { }
2424
2525 impl < T > MaybeSend for T { }
2626
2727 /// An extension trait that enforces `Sync` only on native platforms.
2828 ///
29- /// Useful to write cross-platform async code!
29+ /// Useful for writing cross-platform async code!
3030 pub trait MaybeSync { }
3131
3232 impl < T > MaybeSync for T { }
You can’t perform that action at this time.
0 commit comments