Skip to content

Commit 974f6fb

Browse files
committed
Add comments to the helpers
1 parent 14360f7 commit 974f6fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/fd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
647647
Ok(())
648648
}
649649

650-
/// This function write bytes to the user supplied buffer and write the total number of bytes
651-
/// written to the dest place. (TODO: fix phrasing later, this function might change)
650+
/// This function either writes to the user supplied buffer and to dest place, or return error.
652651
fn read_byte_helper(
653652
&mut self,
654653
buf: Pointer,
@@ -680,6 +679,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
680679
}
681680
}
682681

682+
/// This function either writes the number of written bytes to dest place or return error.
683683
fn write_byte_helper(
684684
&mut self,
685685
result: io::Result<usize>,

0 commit comments

Comments
 (0)