about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-06-13 00:37:30 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-06-13 00:37:30 +0900
commitb8f1491f6e9bfb509d66e646e3ba8efb64394e5d (patch)
tree6f4e2ef0e1282a8ba715b08b789ede18a55cf028
parent05083c2dee278f79988fc4367c29f1a9b5a2d275 (diff)
downloadrust-b8f1491f6e9bfb509d66e646e3ba8efb64394e5d.tar.gz
rust-b8f1491f6e9bfb509d66e646e3ba8efb64394e5d.zip
Fix typos
-rw-r--r--src/librustc/error_codes.rs2
-rw-r--r--src/test/ui/explain.stdout2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs
index 6243e911bd5..65821d8dd83 100644
--- a/src/librustc/error_codes.rs
+++ b/src/librustc/error_codes.rs
@@ -1883,7 +1883,7 @@ This pattern should be rewritten. There are a few possible ways to do this:
     # }
     ```
 
-The same applies to transmutes to `*mut fn()`, which were observedin practice.
+The same applies to transmutes to `*mut fn()`, which were observed in practice.
 Note though that use of this type is generally incorrect.
 The intention is typically to describe a function pointer, but just `fn()`
 alone suffices for that. `*mut fn()` is a pointer to a fn pointer.
diff --git a/src/test/ui/explain.stdout b/src/test/ui/explain.stdout
index 411cdfb335b..9ea56271f59 100644
--- a/src/test/ui/explain.stdout
+++ b/src/test/ui/explain.stdout
@@ -53,7 +53,7 @@ This pattern should be rewritten. There are a few possible ways to do this:
     let f: extern "C" fn(*mut i32) = transmute(foo as usize); // works too
     ```
 
-The same applies to transmutes to `*mut fn()`, which were observedin practice.
+The same applies to transmutes to `*mut fn()`, which were observed in practice.
 Note though that use of this type is generally incorrect.
 The intention is typically to describe a function pointer, but just `fn()`
 alone suffices for that. `*mut fn()` is a pointer to a fn pointer.