Skip to content

Commit 3d3effc

Browse files
committed
Add comments to the helpers
1 parent 7817c6d commit 3d3effc

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
@@ -645,8 +645,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
645645
Ok(())
646646
}
647647

648-
/// This function write bytes to the user supplied buffer and write the total number of bytes
649-
/// written to the dest place. (TODO: fix phrasing later, this function might change)
648+
/// This function either writes to the user supplied buffer and to dest place, or return error.
650649
fn read_byte_helper(
651650
&mut self,
652651
buf: Pointer,
@@ -678,6 +677,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
678677
}
679678
}
680679

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

0 commit comments

Comments
 (0)