Skip to content

Commit 53d0200

Browse files
committed
link const -> const_safety
1 parent cbd7e7e commit 53d0200

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

const.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ On top of what applies to [statics](static.md), they are subject to an additiona
66
const CONST: T = EXPR;
77
```
88
is supposed to behave as-if `EXPR` was written at every use site of `CONST`.
9+
To make this work, we need to ensure [const safety](const_safety.md).
910

1011
Based on this requirement, we allow other constants and [promoteds](promotion.md) to read from constants.
1112
This is why the value of a `const` is subject to validity checks.

0 commit comments

Comments
 (0)