]> git.lizzy.rs Git - rust.git/commitdiff
Small corrections to docs
authorChristian Poveda <christianpoveda@protonmail.com>
Sat, 19 Oct 2019 19:00:44 +0000 (14:00 -0500)
committerChristian Poveda <christianpoveda@protonmail.com>
Sun, 20 Oct 2019 12:55:26 +0000 (07:55 -0500)
src/helpers.rs
src/machine.rs

index 616de837879123edc25e60c52a29225ee32677d8..16091bb242cdd60191d9723549863a9a7cee9eda 100644 (file)
@@ -346,14 +346,14 @@ fn check_no_isolation(&mut self, name: &str) -> InterpResult<'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();
index 315e9c1a35a97eb16ebfb4e82f90dd6da54006d5..50f0ecf590936d2497343a624a2e4e0091bdf412 100644 (file)
@@ -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.