We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ad677 commit f7cbb63Copy full SHA for f7cbb63
src/user-defined-types/const.md
@@ -4,8 +4,8 @@ minutes: 10
4
5
# `const`
6
7
-Constants are evaluated at compile time and their values are inlined wherever
8
-they are used:
+Constants are evaluated at compile time and their values are [inlined][1]
+wherever they are used:
9
10
<!-- mdbook-xgettext: skip -->
11
@@ -31,8 +31,6 @@ fn main() {
31
}
32
```
33
34
-According to the [Rust RFC Book][1] these are inlined upon use.
35
-
36
Only functions marked `const` can be called at compile time to generate `const`
37
values. `const` functions can however be called at runtime.
38
0 commit comments