Skip to content

Commit 8a88ff1

Browse files
committed
Comments should start capitalized and end in a period
1 parent 41d5818 commit 8a88ff1

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
@@ -187,15 +187,15 @@ impl<'rt, 'mir, 'tcx, M: CompileTimeMachine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx
187187
if let ty::Ref(_, referenced_ty, mutability) = ty.kind {
188188
let value = self.ecx.read_immediate(mplace.into())?;
189189
let mplace = self.ecx.ref_to_mplace(value)?;
190-
// Handle trait object vtables
190+
// Handle trait object vtables.
191191
if let ty::Dynamic(..) =
192192
self.ecx.tcx.struct_tail_erasing_lifetimes(referenced_ty, self.ecx.param_env).kind
193193
{
194194
// Validation has already errored on an invalid vtable pointer so we can safely not
195-
// do anything if this is not a real pointer
195+
// do anything if this is not a real pointer.
196196
if let Scalar::Ptr(vtable) = mplace.meta.unwrap() {
197-
// explitly choose `Immutable` here, since vtables are immutable, even
198-
// if the reference of the fat pointer is mutable
197+
// Explitly choose `Immutable` here, since vtables are immutable, even
198+
// if the reference of the fat pointer is mutable.
199199
self.intern_shallow(vtable.alloc_id, Mutability::Not, None)?;
200200
} else {
201201
self.ecx().tcx.sess.delay_span_bug(

0 commit comments

Comments
 (0)