Skip to content

Commit 3a096e9

Browse files
committed
Documentation cleanup for core::error::Request.
1 parent f9b6446 commit 3a096e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: library/core/src/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ where
439439
/// * A Producer initializes the value of one of its fields of a specific type. (or is otherwise
440440
/// prepared to generate a value requested). eg, `backtrace::Backtrace` or
441441
/// `std::backtrace::Backtrace`
442-
/// * A Consumer requests an object of a specific type (say `std::backtrace::Backtrace). In the case
443-
/// of a `dyn Error` trait object (the Producer), there are methods called `request_ref` and
444-
/// `request_value` are available to simplify obtaining an ``Option<T>`` for a given type. * The
445-
/// Producer, when requested, populates the given Request object which is given as a mutable
442+
/// * A Consumer requests an object of a specific type (say `std::backtrace::Backtrace`). In the
443+
/// case of a `dyn Error` trait object (the Producer), there are functions called `request_ref` and
444+
/// `request_value` to simplify obtaining an `Option<T>` for a given type.
445+
/// * The Producer, when requested, populates the given Request object which is given as a mutable
446446
/// reference.
447447
/// * The Consumer extracts a value or reference to the requested type from the `Request` object
448448
/// wrapped in an `Option<T>`; in the case of `dyn Error` the aforementioned `request_ref` and `

0 commit comments

Comments
 (0)