Skip to content

Commit f1bc4ef

Browse files
committed
Addressed review comments.
1 parent 002c1c7 commit f1bc4ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libstd/thread/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1273,15 +1273,15 @@ impl fmt::Debug for Thread {
12731273
///
12741274
/// The value contained in the `Result::Err` variant
12751275
/// is the value the thread panicked with;
1276-
/// that is, the parameter the `panic!` macro was called with.
1276+
/// that is, the argument the `panic!` macro was called with.
12771277
/// Unlike with normal errors, this value doesn't implement
1278-
/// the `std::error::Error` trait.
1278+
/// the [`Error`] trait.
12791279
///
1280-
/// Thus, a sensible way to handle a thread panic is to either
1281-
/// `unwrap` the `Result`, propagating the panic,
1282-
/// or in case the thread is intended to be a subsystem boundary
1280+
/// Thus, a sensible way to handle a thread panic is to either:
1281+
/// 1. `unwrap` the `Result<T>`, propagating the panic
1282+
/// 2. or in case the thread is intended to be a subsystem boundary
12831283
/// that is supposed to isolate system-level failures,
1284-
/// match for the `Err` variant and handle the panic in an appropriate way.
1284+
/// match on the `Err` variant and handle the panic in an appropriate way.
12851285
///
12861286
/// A thread that completes without panicking is considered to exit successfully.
12871287
///

0 commit comments

Comments
 (0)