]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #61776 - JohnTitor:fix-typo-in-error-codes, r=Centril
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 12 Jun 2019 23:49:37 +0000 (01:49 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 23:49:37 +0000 (01:49 +0200)
Fix typos in error_codes

`observedin` should be `observed in`.

src/librustc/error_codes.rs
src/test/ui/explain.stdout

index 6243e911bd5fdf92bc5b834a3ad51e7ccb0f7fd7..65821d8dd8379b61661bc93256dbe1cb9c7d5346 100644 (file)
@@ -1883,7 +1883,7 @@ extern "C" fn foo(userdata: Box<i32>) {
     # }
     ```
 
-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.
index 411cdfb335b342dd16f7a0d0fbcb51f8a23895fb..9ea56271f593fa244dc88a57907b90e9f4a97b62 100644 (file)
@@ -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.