We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82a909 commit 0363884Copy full SHA for 0363884
src/shims/unix/fd.rs
@@ -660,7 +660,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
660
// Crucially, if fewer than `bytes.len()` bytes were read, only write
661
// that much into the output buffer!
662
this.write_bytes_ptr(buf, bytes[..read_bytes].iter().copied())?;
663
- // The actual read size is always lesser than `count` so this cannot fail.
+ // The actual read size is always less than what got originally requested so this cannot fail.
664
this.write_int(u64::try_from(read_bytes).unwrap(), dest)?;
665
return Ok(());
666
}
0 commit comments