Skip to content

Commit e64212e

Browse files
committed
fixup list of valid as casts
`&m1 T -> *m2 T` is not specific to `as` casts (it's a coercion!), but `*[T; N]` -> `*T` is! (previously only the reference source version was documented)
1 parent 2837b28 commit e64212e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/operator-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ reference types and `mut` or `const` in pointer types.
463463
| `*T` | `*V` where `V: Sized` \* | Pointer to pointer cast |
464464
| `*T` where `T: Sized` | Integer type | Pointer to address cast |
465465
| Integer type | `*V` where `V: Sized` | Address to pointer cast |
466-
| `&m₁ T` | `*m₂ T` \*\* | Reference to pointer cast |
467466
| `&m₁ [T; n]` | `*m₂ T` \*\* | Array to pointer cast |
467+
| `*m₁ [T; n]` | `*m₂ T` \*\* | Array to pointer cast |
468468
| [Function item] | [Function pointer] | Function item to function pointer cast |
469469
| [Function item] | `*V` where `V: Sized` | Function item to pointer cast |
470470
| [Function item] | Integer | Function item to address cast |

0 commit comments

Comments
 (0)