We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b0f2af commit f62ad7dCopy full SHA for f62ad7d
src/doc/trpl/const-and-static.md
@@ -78,7 +78,3 @@ Almost always, if you can choose between the two, choose `const`. It’s pretty
78
rare that you actually want a memory location associated with your constant,
79
and using a const allows for optimizations like constant propagation not only
80
in your crate but downstream crates.
81
-
82
-A const can be thought of as a `#define` in C: it has metadata overhead but it
83
-has no runtime overhead. “Should I use a #define or a static in C,” is largely
84
-the same question as whether you should use a const or a static in Rust.
0 commit comments