Skip to content

Commit 8302e25

Browse files
authored
tweak comments
1 parent 9911d8d commit 8302e25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/miri/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
225225
bug!("No field named {} in type {}", name, base.layout().ty);
226226
}
227227

228-
/// Search if Project (which must be a struct or union type) contains the `name` field.
228+
/// Search if `base` (which must be a struct or union type) contains the `name` field.
229229
fn projectable_has_field<P: Projectable<'tcx, Provenance>>(
230230
&self,
231231
base: &P,

src/tools/miri/src/shims/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1466,8 +1466,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
14661466
],
14671467
&entry_place,
14681468
)?;
1469-
// freebsd 12 and onwards had added the d_off field
14701469
} else if this.projectable_has_field(&entry_place, "d_off") {
1470+
// freebsd 12 and onwards had added the d_off field
14711471
this.write_int_fields_named(
14721472
&[
14731473
("d_fileno", ino.into()),

0 commit comments

Comments
 (0)