fix small word dupe typos

This commit is contained in:
Rageking8 2022-10-13 00:12:19 +08:00
parent 50f6d337c6
commit d1982bd0af
17 changed files with 21 additions and 21 deletions

View file

@ -53,8 +53,8 @@ unsafe {
```
Here, transmute is being used to convert the types of the fn arguments.
This pattern is incorrect because, because the type of `foo` is a function
**item** (`typeof(foo)`), which is zero-sized, and the target type (`fn()`)
This pattern is incorrect because the type of `foo` is a function **item**
(`typeof(foo)`), which is zero-sized, and the target type (`fn()`)
is a function pointer, which is not zero-sized.
This pattern should be rewritten. There are a few possible ways to do this: