Skip to content

Commit 51937ef

Browse files
committed
Comments should start capitalized and end in a period
1 parent 58eec17 commit 51937ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_mir/interpret/intern.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ impl<'rt, 'mir, 'tcx, M: CompileTimeMachine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx
188188
if let ty::Ref(_, referenced_ty, mutability) = ty.kind {
189189
let value = self.ecx.read_immediate(mplace.into())?;
190190
let mplace = self.ecx.ref_to_mplace(value)?;
191-
// Handle trait object vtables
191+
// Handle trait object vtables.
192192
if let ty::Dynamic(..) =
193193
self.ecx.tcx.struct_tail_erasing_lifetimes(referenced_ty, self.ecx.param_env).kind
194194
{
195195
// Validation has already errored on an invalid vtable pointer so we can safely not
196-
// do anything if this is not a real pointer
196+
// do anything if this is not a real pointer.
197197
if let Scalar::Ptr(vtable) = mplace.meta.unwrap() {
198-
// explitly choose `Immutable` here, since vtables are immutable, even
199-
// if the reference of the fat pointer is mutable
198+
// Explitly choose `Immutable` here, since vtables are immutable, even
199+
// if the reference of the fat pointer is mutable.
200200
self.intern_shallow(vtable.alloc_id, Mutability::Not, None)?;
201201
} else {
202202
self.ecx().tcx.sess.delay_span_bug(

0 commit comments

Comments
 (0)