Skip to content

Commit 5c3559d

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 17c94b5 + 8f6ebf6 commit 5c3559d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ops/try_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ pub trait FromResidual<R = <Self as Try>::Residual> {
310310
/// This should be implemented consistently with the `branch` method such
311311
/// that applying the `?` operator will get back an equivalent residual:
312312
/// `FromResidual::from_residual(r).branch() --> ControlFlow::Break(r)`.
313-
/// (It must not be an *identical* residual when interconversion is involved.)
313+
/// (The residual is not mandated to be *identical* when interconversion is involved.)
314314
///
315315
/// # Examples
316316
///

0 commit comments

Comments
 (0)