]> git.lizzy.rs Git - rust.git/commitdiff
Improve miri's error reporting in check_in_alloc
authorLoo Maclin <loo.maclin@protonmail.com>
Tue, 23 Apr 2019 09:12:16 +0000 (12:12 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2019 09:12:16 +0000 (12:12 +0300)
src/librustc/mir/interpret/allocation.rs

index bc2dbfcbf388f1cfc88a339444d0d89c1f8aa956..2910deadb9e439eba963c9a441bd3273b2aaa86d 100644 (file)
@@ -32,7 +32,7 @@ pub enum CheckInAllocMsg {
 }
 
 impl Display for CheckInAllocMsg {
-    /// When this printed as an error the context looks like this
+    /// When this is printed as an error the context looks like this
     /// "{test name} test failed: pointer must be in-bounds at offset..."
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(f, "{} test", match *self {