Skip to content

Commit ed16b0a

Browse files
committed
Auto merge of #43689 - edaniels:patch-1, r=GuillaumeGomez
Fix typo in coerce_forced_unit docstring
2 parents 5a5a32a + 3bf1ba7 commit ed16b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/coercion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
10461046
}
10471047

10481048
/// Indicates that one of the inputs is a "forced unit". This
1049-
/// occurs in a case like `if foo { ... };`, where the issing else
1049+
/// occurs in a case like `if foo { ... };`, where the missing else
10501050
/// generates a "forced unit". Another example is a `loop { break;
10511051
/// }`, where the `break` has no argument expression. We treat
10521052
/// these cases slightly differently for error-reporting

0 commit comments

Comments
 (0)