Skip to content

Commit f830a6c

Browse files
Aaron1011RalfJung
andauthored
Apply more formatting fixes
Co-Authored-By: Ralf Jung <post@ralfj.de>
1 parent a208f2f commit f830a6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shims/foreign_items.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
294294
match this.read_scalar(args[0])?.to_usize(this)? {
295295
id if id == sys_getrandom => {
296296
// The first argument is the syscall id,
297-
// so skip over it
297+
// so skip over it.
298298
linux_getrandom(this, &args[1..], dest)?;
299299
}
300300
id => {
@@ -968,7 +968,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
968968
}
969969
}
970970

971-
// Shims the linux 'getrandom()' syscall
971+
// Shims the linux 'getrandom()' syscall.
972972
fn linux_getrandom<'tcx>(
973973
this: &mut MiriEvalContext<'_, 'tcx>,
974974
args: &[OpTy<'tcx, Tag>],
@@ -978,7 +978,7 @@ fn linux_getrandom<'tcx>(
978978
let len = this.read_scalar(args[1])?.to_usize(this)?;
979979

980980
// The only supported flags are GRND_RANDOM and GRND_NONBLOCK,
981-
// neither of which have any effect on our current PRNG
981+
// neither of which have any effect on our current PRNG.
982982
let _flags = this.read_scalar(args[2])?.to_i32()?;
983983

984984
this.gen_random(ptr, len as usize)?;

0 commit comments

Comments
 (0)