Skip to content

Commit 8547e44

Browse files
authored
Rollup merge of #61776 - JohnTitor:fix-typo-in-error-codes, r=Centril
Fix typos in error_codes `observedin` should be `observed in`.
2 parents 307ab9a + b8f1491 commit 8547e44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ This pattern should be rewritten. There are a few possible ways to do this:
18831883
# }
18841884
```
18851885
1886-
The same applies to transmutes to `*mut fn()`, which were observedin practice.
1886+
The same applies to transmutes to `*mut fn()`, which were observed in practice.
18871887
Note though that use of this type is generally incorrect.
18881888
The intention is typically to describe a function pointer, but just `fn()`
18891889
alone suffices for that. `*mut fn()` is a pointer to a fn pointer.

src/test/ui/explain.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This pattern should be rewritten. There are a few possible ways to do this:
5353
let f: extern "C" fn(*mut i32) = transmute(foo as usize); // works too
5454
```
5555

56-
The same applies to transmutes to `*mut fn()`, which were observedin practice.
56+
The same applies to transmutes to `*mut fn()`, which were observed in practice.
5757
Note though that use of this type is generally incorrect.
5858
The intention is typically to describe a function pointer, but just `fn()`
5959
alone suffices for that. `*mut fn()` is a pointer to a fn pointer.

0 commit comments

Comments
 (0)