diff options
| author | Sven Marnach <sven@mozilla.com> | 2023-11-06 11:38:27 +0100 |
|---|---|---|
| committer | Sven Marnach <sven@mozilla.com> | 2023-11-06 11:38:27 +0100 |
| commit | 3a096e96fa74e270623ad4cfc12b643aa3ada303 (patch) | |
| tree | 11776718efa21a28795db04837cf506db5472062 | |
| parent | f9b644636f8c74d1d9a3283dc65a6a6f02a97718 (diff) | |
| download | rust-3a096e96fa74e270623ad4cfc12b643aa3ada303.tar.gz rust-3a096e96fa74e270623ad4cfc12b643aa3ada303.zip | |
Documentation cleanup for core::error::Request.
| -rw-r--r-- | library/core/src/error.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/error.rs b/library/core/src/error.rs index 1170221c10c..f1a7ad93548 100644 --- a/library/core/src/error.rs +++ b/library/core/src/error.rs @@ -439,10 +439,10 @@ where /// * A Producer initializes the value of one of its fields of a specific type. (or is otherwise /// prepared to generate a value requested). eg, `backtrace::Backtrace` or /// `std::backtrace::Backtrace` -/// * A Consumer requests an object of a specific type (say `std::backtrace::Backtrace). In the case -/// of a `dyn Error` trait object (the Producer), there are methods called `request_ref` and -/// `request_value` are available to simplify obtaining an ``Option<T>`` for a given type. * The -/// Producer, when requested, populates the given Request object which is given as a mutable +/// * A Consumer requests an object of a specific type (say `std::backtrace::Backtrace`). In the +/// case of a `dyn Error` trait object (the Producer), there are functions called `request_ref` and +/// `request_value` to simplify obtaining an `Option<T>` for a given type. +/// * The Producer, when requested, populates the given Request object which is given as a mutable /// reference. /// * The Consumer extracts a value or reference to the requested type from the `Request` object /// wrapped in an `Option<T>`; in the case of `dyn Error` the aforementioned `request_ref` and ` |
