Skip to content

Commit e575fb1

Browse files
committed
improve comments
1 parent beb82ea commit e575fb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shims/foreign_items/posix/linux.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
1818
this.write_scalar(errno_place.to_ref().to_scalar()?, dest)?;
1919
}
2020

21-
// File related shims
21+
// File related shims (but also see "syscall" below for statx)
2222

2323
// The only reason this is not in the `posix` module is because the `macos` item has a
2424
// different name.
@@ -59,8 +59,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
5959
// so skip over it.
6060
getrandom(this, &args[1..], dest)?;
6161
}
62-
// `statx` is used by `libstd` to retrieve metadata information in `linux`
63-
// instead of using `stat`,`lstat` or `fstat` as in the `macos` platform.
62+
// `statx` is used by `libstd` to retrieve metadata information on `linux`
63+
// instead of using `stat`,`lstat` or `fstat` as on `macos`.
6464
id if id == sys_statx => {
6565
// The first argument is the syscall id,
6666
// so skip over it.
@@ -87,7 +87,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
8787
}
8888
}
8989

90-
// Shims the linux 'getrandom()' syscall.
90+
// Shims the linux `getrandom` syscall.
9191
fn getrandom<'tcx>(
9292
this: &mut MiriEvalContext<'_, 'tcx>,
9393
args: &[OpTy<'tcx, Tag>],

0 commit comments

Comments
 (0)