Skip to content

Commit

Permalink
Merge #169
Browse files Browse the repository at this point in the history
169: Fix typo r=matklad a=mgrachev



Co-authored-by: Grachev Mikhail <work@mgrachev.com>
  • Loading branch information
bors[bot] and mgrachev authored Dec 25, 2021
2 parents dd8ff8a + abd4c78 commit 68b2d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ pub mod sync {
}

// We never create a `&F` from a `&Lazy<T, F>` so it is fine to not impl
// `Sync` for `F`. we do create a `&mut Option<F>` in `force`, but this is
// `Sync` for `F`. We do create a `&mut Option<F>` in `force`, but this is
// properly synchronized, so it only happens once so it also does not
// contribute to this impl.
unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {}
Expand Down

0 comments on commit 68b2d76

Please sign in to comment.