Skip to content

Commit 1f57eb0

Browse files
RalfJungCentril
andauthored
trailing full stops
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 2bebfd3 commit 1f57eb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/interpret/cast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
110110
)
111111
}
112112

113-
// Handle cast from a univariant (ZST) enum
113+
// Handle cast from a univariant (ZST) enum.
114114
match src.layout.variants {
115115
layout::Variants::Single { index } => {
116116
if let Some(discr) =

src/librustc_mir/interpret/operator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
303303
self.binary_int_op(bin_op, l, left.layout, r, right.layout)
304304
}
305305
_ if left.layout.ty.is_any_ptr() => {
306-
// The RHS type must be the same *or an integer type* (for `Offset`)
306+
// The RHS type must be the same *or an integer type* (for `Offset`).
307307
assert!(
308308
right.layout.ty == left.layout.ty || right.layout.ty.is_integral(),
309309
"Unexpected types for BinOp: {:?} {:?} {:?}",

0 commit comments

Comments
 (0)