Skip to content

Commit b46cafa

Browse files
committed
Small corrections to docs
1 parent ebb6291 commit b46cafa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,14 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
346346
Ok(())
347347
}
348348

349-
/// Sets the last error variable
349+
/// Sets the last error variable.
350350
fn set_last_error(&mut self, scalar: Scalar<Tag>) -> InterpResult<'tcx> {
351351
let this = self.eval_context_mut();
352352
let errno_place = this.machine.last_error.unwrap();
353353
this.write_scalar(scalar, errno_place.into())
354354
}
355355

356-
/// Gets the last error variable
356+
/// Gets the last error variable.
357357
fn get_last_error(&mut self) -> InterpResult<'tcx, Scalar<Tag>> {
358358
let this = self.eval_context_mut();
359359
let errno_place = this.machine.last_error.unwrap();

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub struct Evaluator<'tcx> {
9191
pub(crate) argv: Option<Pointer<Tag>>,
9292
pub(crate) cmd_line: Option<Pointer<Tag>>,
9393

94-
/// Last OS error location in memory. It is a 32 bit integer (unsigned for Windows)
94+
/// Last OS error location in memory. It is a 32-bit integer
9595
pub(crate) last_error: Option<MPlaceTy<'tcx, Tag>>,
9696

9797
/// TLS state.

0 commit comments

Comments
 (0)