Skip to content

Commit f68323b

Browse files
committed
fix typo
1 parent f511c5e commit f68323b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/transform/check_unsafety.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ impl<'a, 'tcx> Visitor<'tcx> for UnsafetyChecker<'a, 'tcx> {
202202
self.source_info.span) {
203203
self.require_unsafe(
204204
"assignment to non-`Copy` union field",
205-
"the previous content of the field may be dropped, which \
206-
cause undefined behavior if the field was not properly \
205+
"the previous content of the field will be dropped, which \
206+
causes undefined behavior if the field was not properly \
207207
initialized")
208208
} else {
209209
// write to non-move union, safe

0 commit comments

Comments
 (0)