Small corrections to docs
This commit is contained in:
parent
8a8fa53a5d
commit
9d50c5e758
@ -346,14 +346,14 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Sets the last error variable
|
||||
/// Sets the last error variable.
|
||||
fn set_last_error(&mut self, scalar: Scalar<Tag>) -> InterpResult<'tcx> {
|
||||
let this = self.eval_context_mut();
|
||||
let errno_place = this.machine.last_error.unwrap();
|
||||
this.write_scalar(scalar, errno_place.into())
|
||||
}
|
||||
|
||||
/// Gets the last error variable
|
||||
/// Gets the last error variable.
|
||||
fn get_last_error(&mut self) -> InterpResult<'tcx, Scalar<Tag>> {
|
||||
let this = self.eval_context_mut();
|
||||
let errno_place = this.machine.last_error.unwrap();
|
||||
|
@ -91,7 +91,7 @@ pub struct Evaluator<'tcx> {
|
||||
pub(crate) argv: Option<Pointer<Tag>>,
|
||||
pub(crate) cmd_line: Option<Pointer<Tag>>,
|
||||
|
||||
/// Last OS error location in memory. It is a 32 bit integer (unsigned for Windows)
|
||||
/// Last OS error location in memory. It is a 32-bit integer
|
||||
pub(crate) last_error: Option<MPlaceTy<'tcx, Tag>>,
|
||||
|
||||
/// TLS state.
|
||||
|
Loading…
x
Reference in New Issue
Block a user