summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 11:21:41 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 11:22:06 +0100
commitbdb8f4966ea75c0147165541771ed3f952ac8d13 (patch)
tree595cefe7f8aba54435c2e36cf36f44a2021cc1a3
parentcba56ea76821a3204923d34c3fe634730a86f22d (diff)
downloadiced-bdb8f4966ea75c0147165541771ed3f952ac8d13.tar.gz
iced-bdb8f4966ea75c0147165541771ed3f952ac8d13.tar.bz2
iced-bdb8f4966ea75c0147165541771ed3f952ac8d13.zip
Fix grammar in `iced_futures::maybe` module
-rw-r--r--futures/src/maybe.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/futures/src/maybe.rs b/futures/src/maybe.rs
index c564a739..c6a507c1 100644
--- a/futures/src/maybe.rs
+++ b/futures/src/maybe.rs
@@ -2,14 +2,14 @@
mod platform {
/// An extension trait that enforces `Send` only on native platforms.
///
- /// Useful to write cross-platform async code!
+ /// Useful for writing cross-platform async code!
pub trait MaybeSend: Send {}
impl<T> MaybeSend for T where T: Send {}
/// An extension trait that enforces `Sync` only on native platforms.
///
- /// Useful to write cross-platform async code!
+ /// Useful for writing cross-platform async code!
pub trait MaybeSync: Sync {}
impl<T> MaybeSync for T where T: Sync {}
@@ -19,14 +19,14 @@ mod platform {
mod platform {
/// An extension trait that enforces `Send` only on native platforms.
///
- /// Useful to write cross-platform async code!
+ /// Useful for writing cross-platform async code!
pub trait MaybeSend {}
impl<T> MaybeSend for T {}
/// An extension trait that enforces `Sync` only on native platforms.
///
- /// Useful to write cross-platform async code!
+ /// Useful for writing cross-platform async code!
pub trait MaybeSync {}
impl<T> MaybeSync for T {}