Skip to content

Commit 32bcb81

Browse files
committed
Fix broken doctest
1 parent d2f49ee commit 32bcb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ impl dyn Error + Send + Sync {
837837
/// impl<'a> Error for SuperError<'a> {}
838838
///
839839
/// // Note that the error doesn't need to be `Send` or `Sync`.
840-
/// impl !Send for SuperError {}
841-
/// impl !Sync for SuperError {}
840+
/// impl<'a> !Send for SuperError<'a> {}
841+
/// impl<'a> !Sync for SuperError<'a> {}
842842
///
843843
/// fn main() {
844844
/// let msg = String::from("Huzzah!");

0 commit comments

Comments
 (0)