1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-11-29 08:57:20 +02:00

Remove unnecessary and duplicate paragraph (#2913)

This doesn't belong in a slide, and we already say the same thing at the
top of the slide.
This commit is contained in:
Martin Geisler
2025-09-18 21:04:07 +02:00
committed by GitHub
parent 81ad6772d1
commit f7cbb63305

View File

@@ -4,8 +4,8 @@ minutes: 10
# `const`
Constants are evaluated at compile time and their values are inlined wherever
they are used:
Constants are evaluated at compile time and their values are [inlined][1]
wherever they are used:
<!-- mdbook-xgettext: skip -->
@@ -31,8 +31,6 @@ fn main() {
}
```
According to the [Rust RFC Book][1] these are inlined upon use.
Only functions marked `const` can be called at compile time to generate `const`
values. `const` functions can however be called at runtime.