Skip to content

Commit f5830a7

Browse files
core::sync::SyncView: minor doc nits
1 parent 4b35912 commit f5830a7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

library/core/src/sync/sync_view.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ use core::task::{Context, Poll};
1717
/// While this may seem not very useful, it allows `SyncView` to _unconditionally_
1818
/// implement `Sync`. Indeed, the safety requirements of `Sync` state that for `SyncView`
1919
/// to be `Sync`, it must be sound to _share_ across threads, that is, it must be sound
20-
/// for `&SyncView` to cross thread boundaries. By design, a `&SyncView<T>` for non-`Sync` T
21-
/// has no API whatsoever, making it useless, thus harmless, thus memory safe.
20+
/// for `&SyncView` to cross thread boundaries. By design, a `&SyncView<T>` for non-`Sync`
21+
/// `T` has no API whatsoever, making it useless, thus harmless, thus memory safe.
2222
///
2323
/// Certain constructs like [`Future`]s can only be used with _exclusive_ access,
24-
/// and are often `Send` but not `Sync`, so `SyncView` can be used as hint to the
24+
/// and are often [`Send`] but not `Sync`, so `SyncView` can be used as hint to the
2525
/// Rust compiler that something is `Sync` in practice.
2626
///
2727
/// ## Examples

0 commit comments

Comments
 (0)