mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #123595 - balaganesh102004:master, r=joboet
Documentation fix Changed "It must not be an identical residual when interconversion is involved" to "The residual is not mandated to be identical when interconversion is involved." as the previous parenthetical appears to state that the residual is not permitted to be identical when interconversion is involved. However the intention of the original wording was to convey that the residual is not required to be identical when interconversion is involved, which makes more sense contextually.
This commit is contained in:
commit
5c3559df63
@ -310,7 +310,7 @@ pub trait FromResidual<R = <Self as Try>::Residual> {
|
||||
/// This should be implemented consistently with the `branch` method such
|
||||
/// that applying the `?` operator will get back an equivalent residual:
|
||||
/// `FromResidual::from_residual(r).branch() --> ControlFlow::Break(r)`.
|
||||
/// (It must not be an *identical* residual when interconversion is involved.)
|
||||
/// (The residual is not mandated to be *identical* when interconversion is involved.)
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user